forked from tabulapdf/tabula-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
31 lines (22 loc) · 870 Bytes
/
setup.py
File metadata and controls
31 lines (22 loc) · 870 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
from setuptools import Distribution, setup
from setuptools.command.install import install as _install
try:
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
except Exception: # pragma: no cover
_bdist_wheel = None
if _bdist_wheel is not None:
class BinaryDistribution(Distribution):
def has_ext_modules(self):
# Force platlib wheel layout for bundled native runtime files.
return True
class install(_install):
def finalize_options(self):
super().finalize_options()
self.install_lib = self.install_platlib
class bdist_wheel(_bdist_wheel):
def finalize_options(self):
super().finalize_options()
self.root_is_pure = False
setup(distclass=BinaryDistribution, cmdclass={"bdist_wheel": bdist_wheel, "install": install})
else:
setup()