File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # Overwrite distutils.dist.Distribution.is_pure()
2- # to return False, so that Python Wheel doesn't set
3- # "none" platform tag.
4- import distutils.dist
5- def is_pure(self):
6- return False
7- distutils.dist.Distribution.is_pure = is_pure
8-
91from setuptools import setup
102from setuptools.command.install import install as _install
3+ from setuptools.dist import Distribution
114import sys
125import os
136import subprocess
@@ -50,7 +43,12 @@ class install(_install):
5043 _install.run(self)
5144 my_post_install()
5245
46+ class BinaryDistribution(Distribution):
47+ def is_pure(self):
48+ return False
49+
5350setup(
51+ distclass=BinaryDistribution,
5452 cmdclass={'install': install},
5553 name='cefpython3', # No spaces here, so that it works with deb packages.
5654 version='%(APP_VERSION)s',
Original file line number Diff line number Diff line change 1- # Overwrite distutils.dist.Distribution.is_pure()
2- # to return False, so that Python Wheel doesn't set
3- # "none" platform tag.
4- import distutils.dist
5- def is_pure(self):
6- return False
7- distutils.dist.Distribution.is_pure = is_pure
8-
91from setuptools import setup
102from setuptools.command.install import install as _install
3+ from setuptools.dist import Distribution
114import sys
125import os
136import subprocess
@@ -20,7 +13,12 @@ class install(_install):
2013 _install.run(self)
2114 my_post_install()
2215
16+ class BinaryDistribution(Distribution):
17+ def is_pure(self):
18+ return False
19+
2320setup(
21+ distclass=BinaryDistribution,
2422 cmdclass={'install': install},
2523 name='cefpython3', # No spaces here, so that it works with deb packages.
2624 version='%(APP_VERSION)s',
You can’t perform that action at this time.
0 commit comments