forked from jonathan-taylor/ISLP
-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathsetup.py
executable file
·50 lines (40 loc) · 1.34 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
#!/usr/bin/env python
''' Installation script for ISLP package '''
import os
import sys
from os.path import join as pjoin, dirname, exists
# BEFORE importing distutils, remove MANIFEST. distutils doesn't properly
# update it when the contents of directories change.
if exists('MANIFEST'): os.remove('MANIFEST')
# Unconditionally require setuptools
import setuptools
# Package for getting versions from git tags
import versioneer
from setuptools import setup
# Define extensions
EXTS = []
cmdclass = versioneer.get_cmdclass()
# get long_description
long_description = open('README.md', 'rt', encoding='utf-8').read()
def main(**extra_args):
setup(version=versioneer.get_version(),
packages = ['ISLP',
'ISLP.models',
'ISLP.models',
'ISLP.bart',
'ISLP.torch',
'ISLP.data'
],
ext_modules = EXTS,
package_data = {"ISLP":["data/*csv", "data/*npy", "data/*data"]},
include_package_data=True,
data_files=[],
scripts=[],
long_description=long_description,
cmdclass = cmdclass,
**extra_args
)
#simple way to test what setup will do
#python setup.py install --prefix=/tmp
if __name__ == "__main__":
main()