-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
62 lines (53 loc) · 2.21 KB
/
setup.py
File metadata and controls
62 lines (53 loc) · 2.21 KB
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
import os
IL = "INSTALL_LOG.txt"
WD = os.getcwd()
#os.chdir('Zandpack')
with open(IL, "w") as f:
print('-------',file=f)
print('We are working in folder: ',file=f)
print(WD,file=f)
print('-------',file=f)
print('Executable files should have status (755) or more.', file=f)
#for f in os.listdir('mpi'):
mask = oct(os.stat('Zandpack/mpi/zand').st_mode)[-3:]
with open(IL, "a") as f:
print('-------',file=f)
print('zand executable status: ' + str(mask) ,file=f)
mask = oct(os.stat('Zandpack/cmdtools/psinought').st_mode)[-3:]
with open(IL, "a") as f:
print('-------',file=f)
print('psinought executable status: ' + str(mask) ,file=f)
mask = oct(os.stat('Zandpack/cmdtools/SCF').st_mode)[-3:]
with open(IL, "a") as f:
print('-------',file=f)
print('SCF executable status: ' + str(mask) ,file=f)
with open(IL, "a") as f:
print('-------',file=f)
print('If any mistakes are seen in this file, manually set the permissions with chmod. ' ,file=f)
print('The ones printed here are the important ones, but you might encounter', file=f)
print('permission problems on the other files in the cmdtools folder. Fix it with chmod! ' ,file=f)
print('Examples of adding to your PATH variable for easy execution: ', file=f)
print(' export PATH=$PATH:'+WD+'/Zandpack/mpi',file=f)
print(' export PATH=$PATH:'+WD+'/Zandpack/cmdtools',file=f)
print('Copy these to your .bashrc file (on linux).',file=f)
from setuptools import setup
setup(name='Zandpack',
version='1.0',
description='Module for calculating timedependent Charge transport in open quantum systems using LCAO models from DFT or tight-binding.',
url='',
author='Aleksander Bach Lorentzen',
author_email='aleksander.bl.mail@gmail.com',
license='MPL-2.0',
packages=['Zandpack'],
zip_safe=False,
install_requires = ["numpy",
"numba",
"sisl",
"matplotlib",
"scipy",
"siesta_python",
"Block_matrices",
"Gf_Module",
"psutil",
"joblib",
])