-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·52 lines (41 loc) · 1.68 KB
/
setup.py
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
#!/usr/bin/env python
import os
import subprocess
import sys
from setuptools import setup
from setuptools import find_packages
if len(sys.argv)<2:
print("see install.txt for installation instructions.")
#if "--unpack" in sys.argv:
gzpath = os.path.dirname(os.path.realpath(__file__))
gzpath = os.path.join(gzpath, "pyasf", "settings.txt.gz")
import gzip
import shutil
with gzip.open(gzpath, 'rb') as f_in:
with open(gzpath[:-3], 'wb') as f_out:
shutil.copyfileobj(f_in, f_out)
setup( name = "pyasf",
version = "0.1",
packages = find_packages(),
package_data = {
"pyasf": ["space-groups.sqlite",
gzpath[:-3] if os.path.isfile(gzpath[:-3]) else gzpath,
"f0_lowq.sqlite",
"coppens/*"],
"pyasf.materials": ["cif/*"]},
author = "Carsten Richter",
author_email = "[email protected]",
description = "Software for symbolical calculation of the anisotropic tensor of susceptibility and the anisotropic structure factor (ASF).",
long_description = """
Module provides symbolical calculation of the anisotropic Structure Factor
of a Crystal of given Space Group and Asymmetric Unit up to dipole-quadrupole (DQ) approximation.
This class represents the unit cell of a crystal in terms of Resonant
Elastic X-Ray Scattering (REXS)
""",
install_requires=[
'numpy',
'sympy',
'PyCifRW',
'lxml'
],
)