@@ -8,74 +8,72 @@ Requirements
88
99The diffpy.srreal requires Python 2.6 or 2.7 and the following software:
1010
11- * `setuptools ` - tools for installing Python packages
12- * `NumPy ` - library for scientific computing with Python
13- * `scons ` - software constructions tool (1.0 or later)
14- * `python-dev ` - header files for interfacing Python with C
15- * `libboost-dev ` - Boost C++ libraries development files (1.43 or later)
16- * `libdiffpy ` - C++ library for PDF, bond valence sum and other pair
17- quantity calculators https://github.com/diffpy/libdiffpy/
18- * `diffpy.Structure ` - simple storage and manipulation of atomic structures
19- https://github.com/diffpy/diffpy.Structure/
11+ * `` setuptools `` - tools for installing Python packages
12+ * `` NumPy `` - library for scientific computing with Python
13+ * `` scons `` - software constructions tool (1.0 or later)
14+ * `` python-dev `` - header files for interfacing Python with C
15+ * `` libboost-dev ` ` - Boost C++ libraries development files (1.43 or later)
16+ * `` libdiffpy `` - C++ library for PDF, bond valence sum and other pair
17+ quantity calculators https://github.com/diffpy/libdiffpy
18+ * `` diffpy.Structure ` ` - simple storage and manipulation of atomic structures
19+ https://github.com/diffpy/diffpy.Structure
2020
2121Recommended software:
2222
23- * `periodictable ` - periodic table of elements in Python
24- http://www.reflectometry.org/danse/elements.html
25- * `pyobjcryst ` - Python bindings to ObjCryst++, the Object Oriented
26- Crystallographic library for C++
27- https://github.com/diffpy/pyobjcryst/
23+ * ``periodictable `` - periodic table of elements in Python
24+ http://www.reflectometry.org/danse/elements.html
25+ * ``pyobjcryst `` - Python bindings to ObjCryst++, the Object Oriented
26+ Crystallographic library for C++, https://github.com/diffpy/pyobjcryst.
2827
2928Some of the required software may be available in the system package manager,
3029for example, on Ubuntu Linux the dependencies can be installed as::
3130
32- sudo apt-get install \
33- python-setuptools python-numpy scons \
34- build-essential python-dev libboost-dev
31+ sudo apt-get install \
32+ python-setuptools python-numpy scons \
33+ build-essential python-dev libboost-dev
3534
36- For Mac OS X machine with the MacPorts package manager one could do::
35+ For Mac OS X machine with the MacPorts package manager one could do ::
3736
38- sudo port install \
39- python27 py27-setuptools py27-numpy scons boost
37+ sudo port install \
38+ python27 py27-setuptools py27-numpy scons boost
4039
4140When installing with MacPorts, make sure the MacPorts bin directory is the
42- first in the system PATH and that python27 is selected as the default::
43- Python version in MacPorts:
41+ first in the system PATH and that python27 is selected as the default
42+ Python version in MacPorts::
4443
45- sudo port select --set python python27
44+ sudo port select --set python python27
4645
4746For other required packages see their respective web pages for installation
4847instructions.
4948
50-
5149.. index :: Installation
5250
5351Installation
5452------------------------------------------------------------------------
5553
5654The easiest option is to use the latest DiffPy-CMI release bundle from
57- http://www.diffpy.org/ , which comes with diffpy.srreal and all other
55+ http://www.diffpy.org, which comes with diffpy.srreal and all other
5856dependencies included.
5957
6058If you prefer to install from sources, make sure all required software
61- packages are in place and then run::
59+ packages are in place and then run ::
6260
63- sudo python setup.py install
61+ sudo python setup.py install
6462
6563This installs diffpy.srreal for all users in the default system location.
6664If administrator (root) access is not available, see the usage info from
67- " python setup.py install --help" for options to install to a user-writable
65+ `` python setup.py install --help `` for options to install to a user-writable
6866location. The installation integrity can be verified by changing to
69- the HOME directory and running::
67+ the HOME directory and running ::
7068
71- python -m diffpy.srreal.tests.run
69+ python -m diffpy.srreal.tests.run
7270
73- An alternative way of installing diffpy.srreal is to use the scons tool,
71+ An alternative way of installing diffpy.srreal is to use the SCons tool,
7472which can speed up the process by compiling the C++ files in parallel (-j4)::
7573
76- sudo scons -j4 install
74+ sudo scons -j4 install
7775
78- See " scons -h" for build parameters and options to install to a user-writable
76+ See `` scons -h `` for build parameters and options to install to a user-writable
7977directory.
8078
8179
@@ -85,16 +83,15 @@ Development
8583diffpy.srreal is an open-source software developed as a part of the
8684DiffPy-CMI complex modeling initiative at the Brookhaven National
8785Laboratory. The diffpy.srreal sources are hosted at
88-
89- https://github.com/diffpy/diffpy.srreal
86+ https://github.com/diffpy/diffpy.srreal.
9087
9188Feel free to fork the project and contribute. To install diffpy.srreal
9289in a development mode, where the sources are directly used by Python
93- rather than copied to a system directory, use::
90+ rather than copied to a system directory, use ::
9491
95- python setup.py develop --user
92+ python setup.py develop --user
9693
9794To rebuild the C++ extension module and then optionally test the code
98- integrity, use::
95+ integrity, use ::
9996
100- scons -j4 build=debug develop [test]
97+ scons -j4 build=debug develop [test]
0 commit comments