Uh oh!
There was an error while loading. Please reload this page.
forked from anstmichaels/emopt
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
Latest commit
31 lines (29 loc) · 1.16 KB
/
Copy pathsetup.py
File metadata and controls
31 lines (29 loc) · 1.16 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
fromsetuptoolsimportsetup
fromsetuptools.command.installimportinstallasSetuptoolsInstall
importsubprocess, os, sys
classMakeInstall(SetuptoolsInstall):
defrun(self):
home_dir=os.path.expanduser('~')
deps_file=home_dir+'/.emopt_deps'
if(os.path.exists(deps_file)):
withopen(deps_file, 'r') asfdeps:
forlineinfdeps:
toks=line.rstrip('\r\n').split('=')
os.environ[toks[0]] =toks[1]
else:
pass# install dependencies as needed
subprocess.call('make')
SetuptoolsInstall.do_egg_install(self)
setup(name='emopt',
version='2019.5.6',
description='A suite of tools for optimizing the shape and topology of ' \
'electromagnetic structures.',
url='https://github.com/anstmichaels/emopt',
author='Andrew Michaels',
author_email='amichaels@berkeley.edu',
license='GPL 3.0',
packages=['emopt'],
package_data={'emopt':['*.so', '*.csv', 'data/*']},
cmdclass={'install':MakeInstall},
install_requires=['numpy', 'scipy', 'mpi4py', 'petsc4py', 'slepc4py'],
zip_safe=False)