mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
deploy-ng: fix issues locating certain files inside .whl
This commit is contained in:
parent
2026879ac9
commit
4dfa70115e
@ -189,7 +189,7 @@ class build_apps(distutils.core.Command):
|
|||||||
#FIXME: this is a temporary hack to pick up libpandagl.
|
#FIXME: this is a temporary hack to pick up libpandagl.
|
||||||
plugin_list = ['panda3d/lib{}'.format(i) for i in self.plugins]
|
plugin_list = ['panda3d/lib{}'.format(i) for i in self.plugins]
|
||||||
for lib in p3dwhl.namelist():
|
for lib in p3dwhl.namelist():
|
||||||
plugname = os.path.splitext(lib)[0]
|
plugname = lib.split('.', 1)[0]
|
||||||
if plugname in plugin_list:
|
if plugname in plugin_list:
|
||||||
source_path = os.path.join(p3dwhlfn, lib)
|
source_path = os.path.join(p3dwhlfn, lib)
|
||||||
target_path = os.path.join(builddir, os.path.basename(lib))
|
target_path = os.path.join(builddir, os.path.basename(lib))
|
||||||
@ -402,7 +402,7 @@ class build_apps(distutils.core.Command):
|
|||||||
whl, wf = source_path.split('.whl' + os.path.sep)
|
whl, wf = source_path.split('.whl' + os.path.sep)
|
||||||
whl += '.whl'
|
whl += '.whl'
|
||||||
whlfile = self._get_zip_file(whl)
|
whlfile = self._get_zip_file(whl)
|
||||||
data = whlfile.read(wf)
|
data = whlfile.read(wf.replace(os.path.sep, '/'))
|
||||||
with open(target_path, 'wb') as f:
|
with open(target_path, 'wb') as f:
|
||||||
f.write(data)
|
f.write(data)
|
||||||
# Wrap the data in a BytesIO, since we need to be able to seek in
|
# Wrap the data in a BytesIO, since we need to be able to seek in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user