forked from matthew-brett/delocate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
71 lines (67 loc) · 2.66 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
68
69
70
71
#!/usr/bin/env python
""" setup script for delocate package """
import sys
from os.path import join as pjoin
from setuptools import setup, find_packages
# For some commands, use setuptools.
if len(set(('develop', 'bdist_egg', 'bdist_rpm', 'bdist', 'bdist_dumb',
'install_egg_info', 'egg_info', 'easy_install', 'bdist_wheel',
'bdist_mpkg')).intersection(sys.argv)) > 0:
import setuptools
import versioneer
versioneer.VCS = 'git'
versioneer.versionfile_source = pjoin('delocate', '_version.py')
versioneer.versionfile_build = pjoin('delocate', '_version.py')
versioneer.tag_prefix = ''
versioneer.parentdir_prefix = 'delocate-'
setup(name='delocate',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description='Move OSX dynamic libraries into package',
author='Matthew Brett',
maintainer='Matthew Brett',
author_email='[email protected]',
url='http://github.com/matthew-brett/delocate',
packages=find_packages(),
install_requires=[
"machomachomangler; sys_platform == 'win32'",
"bindepend; sys_platform == 'win32'",
"wheel",
],
package_data = {'delocate.tests':
[pjoin('data', '*.dylib'),
pjoin('data', '*.txt'),
pjoin('data', '*.bin'),
pjoin('data', '*.py'),
pjoin('data', 'liba.a'),
pjoin('data', 'a.o'),
pjoin('data', '*.whl'),
pjoin('data', 'test-lib'),
pjoin('data', '*patch'),
pjoin('data', 'make_libs.sh'),
pjoin('data', 'icon.ico')]},
entry_points = {
'console_scripts': [
'delocate-{} = delocate.cmd.delocate_{}:main'.format(name, name)
for name in (
'addplat',
'fuse',
'listdeps',
'patch',
'path',
'wheel',
)
]
},
license='BSD license',
classifiers = ['Intended Audience :: Developers',
"Environment :: Console",
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Operating System :: MacOS :: MacOS X',
'Development Status :: 3 - Alpha',
'Topic :: Software Development :: Libraries :: '
'Python Modules',
'Topic :: Software Development :: Build Tools'],
long_description = open('README.rst', 'rt').read(),
)