forked from Mizux/cmake-swig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py.in
44 lines (41 loc) · 1.41 KB
/
setup.py.in
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
from setuptools import find_packages, setup
from setuptools.dist import Distribution
class BinaryDistribution(Distribution):
def is_pure(self):
return False
def has_ext_modules(self):
return True
from setuptools.command.install import install
class InstallPlatlib(install):
def finalize_options(self):
install.finalize_options(self)
self.install_lib=self.install_platlib
setup(
name='@PYTHON_PROJECT@',
version='@PROJECT_VERSION@',
author='Mizux',
author_email='\"Mizux Seiha\" <mizux.dev@gmail.com>',
url='https://github.com/Mizux/cmake-swig',
distclass=BinaryDistribution,
cmdclass={'install': InstallPlatlib},
packages=find_packages(),
package_data={
'@PYTHON_PROJECT@':[$<$<NOT:$<PLATFORM_ID:Windows>>:'.libs/*'>],
'@PYTHON_PROJECT@.foo':['$<TARGET_FILE_NAME:pyFoo>'],
'@PYTHON_PROJECT@.bar':['$<TARGET_FILE_NAME:pyBar>'],
'@PYTHON_PROJECT@.foobar':['$<TARGET_FILE_NAME:pyFooBar>'],
},
include_package_data=True,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: POSIX :: Linux',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Programming Language :: Python',
'Programming Language :: C++',
'Topic :: Scientific/Engineering',
'Topic :: Software Development :: Libraries :: Python Modules'
],
)