-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
66 lines (64 loc) · 2.48 KB
/
setup.py
File metadata and controls
66 lines (64 loc) · 2.48 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
62
63
64
65
66
import setuptools
#from os import walk
from shutil import copy
import sys
from pathlib import Path
# Generate the examples data by scavenging the examples directory
#Examples_Dir = 'examples'
# J. Kas - copy corvus.conf to corvus/config for backward compatibility.
# Make directory ~/.Corvus if it doesn't exist
config_pth = Path.home() / ".Corvus"
config_pth.mkdir(exist_ok=True)
util_pth = config_pth / "corvutils"
util_pth.mkdir(exist_ok=True)
# Still copy corvus.conf if one exists. Just don't do anything
# if it doesn't exist. We will search for programs on first
# run if the program doesn't find $HOME/.Corvus/corvus.conf.
if Path('corvus.conf').is_file():
# J. Kas - now going to copy all data files to ~/.Corvus
copy('corvus.conf',str(config_pth))
# always copy parsnip.corvus.config
copy(str(Path('./corvutils/parsnip.corvus.config')),str(util_pth))
#else:
#print('Writing corvus.conf')
#f = open("corvus.conf", "w")
#print(os.getcwd())
#f.write("[Executables]\n")
#f.write("dmdw :\n")
#f.write("feff : " + str(feff_path) + "\n")
#f.write("abinit :\n")
#f.write("nwchem :\n")
#f.write("orca :\n")
#f.write("gaussian :\n")
#f.write("vasp :\n")
#f.write("siesta :\n")
#f.write("ocean :\n")
#f.write("cif2cell :\n")
#f.write("phsf :\n")
#f.write(" \n")
#f.write("[Defaults]\n")
#f.write("prefix : Corvus\n")
#f.write("inputsuffix : .inp\n")
#f.write("savesuffix : .nest\n")
#f.write("checkpoints : off\n")
#f.write("parallelrun :\n")
#
#f.close()
#copy('corvus.conf',str(config_pth))
#copy(str(Path('./corvutils/parsnip.corvus.config')),str(util_pth))
#
setuptools.setup(name='corvus',
version='1.1.4',
#python_requires='==3.12.5',
description='Property-driven Scientific Workflow Manager',
author='S. Story, F. D. Vila, J. J. Kas, S. D. Pemmaraju, J. J. Rehr',
author_email='feff@uw.edu',
maintainer='F. D. Vila, J. J. Kas, S. D. Pemmaraju, J. J. Rehr',
maintainer_email='feff@uw.edu',
url='http://feffproject.org',
#scripts=['bin/run-corvus'],
packages=setuptools.find_packages(),
# J Kas - Moved corvus.conf to corvus/config since pip/setuptools don't like names that start with the module name?
package_data={'corvutils':['parsnip.corvus.config','parsnip.corvus.formats'],'corvus':['config']},
install_requires=['more_itertools','h5py==3.15.1','lmfit','mp_api','pymatgen','xraylarch','orjson']
)