-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
44 lines (38 loc) · 1.04 KB
/
setup.py
File metadata and controls
44 lines (38 loc) · 1.04 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import re
import glob
try:
from setuptools import setup
setup
except ImportError:
from distutils.core import setup
setup
setup(
name="MINESweeper",
url="https://github.com/pacargile/MINESweeper.git",
version="2.0",
author="Phillip Cargile",
author_email="pcargile@cfa.harvard.edu",
packages=["minesweeper",
"minesweeper.jax",],
license="LICENSE",
description="MIST Isochrones w/ Nested Sampling",
long_description=open("README.md").read(),
package_data={"": ["README.md", "LICENSE"]},
include_package_data=True,
install_requires=["numpy", "scipy", "h5py","dynesty","astropy"],
)
# write top level __init__.py file with the correct absolute path to package repo
toplevelstr = ("""try:
from ._version import __version__
except(ImportError):
pass
"""
)
with open('minesweeper/__init__.py','w') as ff:
ff.write(toplevelstr)
ff.write('\n')
ff.write("""__abspath__ = '{0}/'\n""".format(os.getcwd()))