kopia lustrzana https://github.com/jupyterhub/repo2docker
apply platform tag to wheels
rodzic
c158daab9d
commit
683a94fb80
|
@ -0,0 +1,2 @@
|
||||||
|
[wheel]
|
||||||
|
universal=1
|
19
setup.py
19
setup.py
|
@ -72,6 +72,24 @@ if sys.platform in checksums:
|
||||||
else:
|
else:
|
||||||
print("I don't know how to bundle s2i for %s" % sys.platform)
|
print("I don't know how to bundle s2i for %s" % sys.platform)
|
||||||
|
|
||||||
|
cmdclass = {}
|
||||||
|
try:
|
||||||
|
from wheel.bdist_wheel import bdist_wheel
|
||||||
|
from wheel.pep425tags import get_platform
|
||||||
|
except ImportError:
|
||||||
|
# no wheel
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
# apply current platform tag
|
||||||
|
# because we bundle platform-specific s2i binaries
|
||||||
|
class PlatformBDistWheel(bdist_wheel):
|
||||||
|
def initialize_options(self):
|
||||||
|
super(PlatformBDistWheel, self).initialize_options()
|
||||||
|
if self.plat_name is None:
|
||||||
|
self.plat_name = get_platform()
|
||||||
|
|
||||||
|
cmdclass['bdist_wheel'] = PlatformBDistWheel
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='jupyter-repo2docker',
|
name='jupyter-repo2docker',
|
||||||
version='0.1',
|
version='0.1',
|
||||||
|
@ -84,6 +102,7 @@ setup(
|
||||||
author='Yuvi Panda',
|
author='Yuvi Panda',
|
||||||
author_email='yuvipanda@gmail.com',
|
author_email='yuvipanda@gmail.com',
|
||||||
license='BSD',
|
license='BSD',
|
||||||
|
cmdclass=cmdclass,
|
||||||
package_data={
|
package_data={
|
||||||
'repo2docker': ['s2i'],
|
'repo2docker': ['s2i'],
|
||||||
},
|
},
|
||||||
|
|
Ładowanie…
Reference in New Issue