mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 08:15:18 -04:00
deploy-ng: Add https://archive.panda3d.org/simple/opt as an optimized wheel index for release builds
Fixes #469
This commit is contained in:
parent
88fc3d4ca3
commit
950ffd6eb8
9
direct/src/dist/commands.py
vendored
9
direct/src/dist/commands.py
vendored
@ -315,11 +315,18 @@ class build_apps(setuptools.Command):
|
|||||||
if self.use_optimized_wheels:
|
if self.use_optimized_wheels:
|
||||||
if not self.optimized_wheel_index:
|
if not self.optimized_wheel_index:
|
||||||
# Try to find an appropriate wheel index
|
# Try to find an appropriate wheel index
|
||||||
|
|
||||||
|
# Start with the release index
|
||||||
|
self.optimized_wheel_index = 'https://archive.panda3d.org/simple/opt'
|
||||||
|
|
||||||
|
# See if a buildbot build is being used
|
||||||
with open(self.requirements_path) as reqsfile:
|
with open(self.requirements_path) as reqsfile:
|
||||||
reqsdata = reqsfile.read()
|
reqsdata = reqsfile.read()
|
||||||
matches = re.search(r'--extra-index-url (https*://archive.panda3d.org/.*\b)', reqsdata)
|
matches = re.search(r'--extra-index-url (https*://archive.panda3d.org/.*\b)', reqsdata)
|
||||||
if matches and matches.group(1):
|
if matches and matches.group(1):
|
||||||
self.optimized_wheel_index = matches.group(1) + '/opt'
|
self.optimized_wheel_index = matches.group(1)
|
||||||
|
if not matches.group(1).endswith('opt'):
|
||||||
|
self.optimized_wheel_index += '/opt'
|
||||||
|
|
||||||
assert self.optimized_wheel_index, 'An index for optimized wheels must be defined if use_optimized_wheels is set'
|
assert self.optimized_wheel_index, 'An index for optimized wheels must be defined if use_optimized_wheels is set'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user