File: INSTALLATION

package info (click to toggle)
pycifrw 5.0.1%2B~3.0.13.427.g9e493fc-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 37,496 kB
  • sloc: python: 11,302; ansic: 195; lex: 153; makefile: 47; sh: 47
file content (60 lines) | stat: -rw-r--r-- 1,486 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Installation instructions for PyCifRW v 5
-----------------------------------------

PyCifRW may be installed using Conda, Python pip,
or directly from source.

Using Conda
-----------
If you don't have conda install from either
Anaconda: https://docs.continuum.io/anaconda/install
or 
miniconda: https://conda.io/docs/install/quick.html

Then, 
conda install pycifrw -c conda-forge

Now skip to the "Checking  the installation" section at 
the end of this document.

Prerequisites for installation from pip or source
-------------------------------------------------

Python 3.7 or greater must already be installed.  Self-installing
packages for Python (Windows and Mac) are available from
www.python.org.  All Linux distributions come with Python included in
the base setup.

Use of the optional dREL functionality requires installation of PLY
(Python Lex Yacc):

    pip install ply

and numpy

    pip install numpy

Installation
------------

(All operating systems)

The latest version can be obtained from the Python Package Index:

    pip install pycifrw

(From source)
 
1. Download and unpack the source distribution file PyCifRW-5.0.tar.gz
2. In directory PyCifRW-5.0, execute the command
 
     python setup.py install 

In Windows this can be accomplished by double-clicking 
the setup.py icon.

Checking the installation
-------------------------

Start an interactive python interpreter. Type "import CifFile".  If
this command is successful, installation is complete.