-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
32 lines (29 loc) · 911 Bytes
/
setup.py
File metadata and controls
32 lines (29 loc) · 911 Bytes
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
import os
from distutils.core import setup
from distutils.command.sdist import sdist
import bowditch # safe, because __init__.py contains no import statements
class my_sdist(sdist):
def make_distribution(self):
# See https://github.com/skyfielders/python-skyfield/issues/378
for path in self.filelist.files:
os.chmod(path, 0o644)
sdist.make_distribution(self)
setup(
cmdclass={'sdist': my_sdist},
name='bowditch',
version=bowditch.__version__,
description=bowditch.__doc__.split('\n', 1)[0],
long_description=open('README.md', 'rb').read().decode('utf-8'),
license='MIT',
author='Josh Paterson',
author_email='mail@joshpaterson.com',
url='http://github.com/JoshPaterson/bowditch/',
packages=[
'bowditch',
'bowditch.data',
'bowditch.tests',
],
install_requires=[
'numpy',
],
)