forked from hiddenSymmetries/VMEC2000
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
67 lines (60 loc) · 2.23 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
#!/usr/bin/env python3
import sys
import json
import argparse
import setuptools
import pathlib
import os
from os.path import basename, splitext
from glob import glob
print("system.platform is {}".format(sys.platform))
if (sys.platform == "darwin"):
from distutils import sysconfig
vars = sysconfig.get_config_vars()
vars['LDSHARED'] = vars['LDSHARED'].replace('-bundle', '-dynamiclib')
from skbuild import setup
fldr_path = pathlib.Path(__file__).parent.absolute()
with open(os.path.join(fldr_path, 'cmake_config_file.json')) as fp:
d = json.load(fp)
class EmptyListWithLength(list):
def __len__(self):
return 1
setup(
name="vmec",
version="0.0.4",
license="MIT",
url="https://github.com/hiddenSymmetries/VMEC2000",
packages=['vmec'],
package_dir={'': 'python'},
install_requires=['f90wrap'],
python_requires=">=3.6",
ext_modules=EmptyListWithLength(),
description="Python wrapper for VMEC2000",
maintainer="Bharat Medasani",
maintainer_email="[email protected]",
author="Ben Faber, Matt Landreman, Bharat Medasani, Caoxiang Zhu (developers of python extension only)",
classifiers=[
"Development Status :: 1 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"Intended Audience :: Nuclear Fusion Community",
"Operating System :: MacOS",
"Operating System :: POSIX",
"Operating System :: Unix",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Fortran",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Nuclear Fusion",
"Topic :: Scientific/Engineering :: Nuclear Fusion :: Stellarator Research",
"Topic :: Scientific/Engineering :: Optimization",
"Topic :: Software Development",],
cmake_args=d['cmake_args'],
)