Repository navigation
Expand file tree
/
Copy pathsetup.py.in
More file actions
85 lines (76 loc) · 3.12 KB
/
Copy pathsetup.py.in
File metadata and controls
85 lines (76 loc) · 3.12 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
from sys import executable
from os.path import join as pjoin
from os.path import dirname
setuptools_import_error_message = """setuptools is not installed for """ + executable + """
Please follow this link for installing instructions :
https://pypi.python.org/pypi/setuptools
make sure you use \"""" + executable + """\" during the installation"""
try:
from setuptools import find_packages, setup
from setuptools.dist import Distribution
from setuptools.command.install import install
except ImportError:
raise ImportError(setuptools_import_error_message)
class BinaryDistribution(Distribution):
def is_pure(self):
return False
def has_ext_modules(self):
return True
class InstallPlatlib(install):
def finalize_options(self):
install.finalize_options(self)
self.install_lib = self.install_platlib
setup(
name='@PYTHON_PROJECT@',
version='@PROJECT_VERSION@',
packages=find_packages(),
python_requires='>= 3.9',
package_data={
'@PYTHON_PROJECT@':['.libs/*'],
'@PYTHON_PROJECT@.foo':['*.pyi'],
'@PYTHON_PROJECT@.foo.python':['$<TARGET_FILE_NAME:pyFoo>', '*.pyi'],
'@PYTHON_PROJECT@.bar':['*.pyi'],
'@PYTHON_PROJECT@.bar.python':['$<TARGET_FILE_NAME:pyBar>', '*.pyi'],
'@PYTHON_PROJECT@.foobar':['*.pyi'],
'@PYTHON_PROJECT@.foobar.python':['$<TARGET_FILE_NAME:pyFooBar>', '*.pyi'],
},
include_package_data=True,
license='Apache 2.0',
author='Mizux',
author_email='"Mizux Seiha" <mizux.dev@gmail.com>',
url='https://github.com/Mizux/cmake-pybind11',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Information Technology',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
'Operating System :: Unix',
'Operating System :: POSIX :: Linux',
'Operating System :: POSIX :: BSD :: FreeBSD',
'Operating System :: POSIX :: BSD :: NetBSD',
'Operating System :: POSIX :: BSD :: OpenBSD',
'Operating System :: MacOS',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Programming Language :: C++',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Office/Business',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries :: Python Modules',
],
distclass=BinaryDistribution,
cmdclass={'install': InstallPlatlib},
)