Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
44 lines (30 loc) · 1.23 KB

File metadata and controls

44 lines (30 loc) · 1.23 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
"""Minimal setup.py used only to mark the wheel as a binary distribution.
All metadata lives in ``pyproject.toml``. The bundled
``libdataframe-arrow.dylib`` (or ``.so``) is platform-specific but does NOT
link against libpython, so the wheel is Python-version-agnostic — we set
the wheel tag to ``py3-none-<platform>`` accordingly.
"""
from setuptools import setup
from setuptools.dist import Distribution
try:
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
except ImportError: # pragma: no cover
_bdist_wheel = None
class BinaryDistribution(Distribution):
def has_ext_modules(self):
return True
def is_pure(self):
return False
cmdclass = {}
if _bdist_wheel is not None:
class bdist_wheel(_bdist_wheel):
def finalize_options(self):
_bdist_wheel.finalize_options(self)
self.root_is_pure = False
def get_tag(self):
python, abi, plat = _bdist_wheel.get_tag(self)
# The native lib is platform-specific but doesn't link libpython,
# so the wheel works on any Python 3 ABI on the same platform.
return "py3", "none", plat
cmdclass["bdist_wheel"] = bdist_wheel
setup(distclass=BinaryDistribution, cmdclass=cmdclass)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.