-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
34 lines (25 loc) · 828 Bytes
/
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
from __future__ import print_function
import os.path
import sys
import setuptools
from numpy.distutils.core import setup
DISTNAME = 'pyrfm'
DESCRIPTION = 'A python library for random feature maps.'
VERSION = '1.0.0'
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration(None, parent_package, top_path)
config.add_subpackage('pyrfm')
return config
if __name__ == '__main__':
old_path = os.getcwd()
local_path = os.path.dirname(os.path.abspath(sys.argv[0]))
os.chdir(local_path)
sys.path.insert(0, local_path)
setup(configuration=configuration,
name=DISTNAME,
maintainer='Kyohei Atarashi',
include_package_data=True,
version=VERSION,
zip_safe=False
)