forked from QEF/postqe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
93 lines (81 loc) · 2.92 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#
# Copyright (c), 2016-2017, Quantum Espresso Foundation and SISSA (Scuola
# Internazionale Superiore di Studi Avanzati). All rights reserved.
# This file is distributed under the terms of the LGPL-2.1 license. See the
# file 'LICENSE' in the root directory of the present distribution, or
# https://opensource.org/licenses/LGPL-2.1
#
import os
import glob
from setuptools import setup
from setuptools.command.build_ext import build_ext
from setuptools.command.sdist import sdist
from setuptools.command.install import install
class MyBuildExt(build_ext):
def run(self):
os.system('make -C postqe/fortran all')
build_ext.run(self)
class MySDist(sdist):
def run(self):
print("MySDist !!!")
import pdb
pdb.set_trace()
sdist.run(self)
class MyInstall(install):
def run(self):
print("MyInstall !!!")
import pdb
pdb.set_trace()
install.run(self)
setup(
name='postqe',
version='0.2',
packages=['postqe', 'postqe.ase'],
package_data={'postqe': [
'schemas/*.xsd'
]},
install_requires=[
'numpy>=1.10.1', 'ase>=3.10', 'scipy', 'h5py', 'matplotlib',
'xmlschema>=0.9.10', 'colormath', 'natsort', 'moviepy'
],
data_files=[
# ('/usr/share/doc/postqe/example1', glob.glob('examples/example1/*')),
# ('/usr/share/doc/postqe/example2', glob.glob('examples/example2/*')),
# ('/usr/share/doc/postqe/example3', glob.glob('examples/example3/*')),
('/usr/share/doc/postqe/RGB', [fn for fn in glob.glob('examples/RGB/*') if os.path.isfile(fn)]),
('/usr/share/doc/postqe/RGB/EIG', glob.glob('examples/RGB/EIG/*')),
('/usr/share/doc/postqe/RGB/plot', glob.glob('examples/RGB/plot/*')),
('/usr/share/doc/postqe/RGB/spectra', glob.glob('examples/RGB/spectra/*')),
],
entry_points={
'console_scripts': [
'postqe=postqe.cli:main'
]
},
cmdclass={
'build_ext': MyBuildExt,
'sdist': MySDist,
'install': MyInstall
},
author='Mauro Palumbo',
author_email='[email protected]',
license='LGPL-2.1',
summary='Post processing tools for Quantum Espresso',
long_description='Post processing tools for Quantum Espresso',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Science/Research',
'Operating System :: POSIX',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Fortran',
'License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)',
'Natural Language :: English',
'Topic :: Scientific/Engineering :: Physics'
]
)