mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
test_wheel: remove temp hack for pip 19.2.2, as 19.2.3 is released
The hack was introduced in 22833686e3b09edfeb881767178c233efe393229 [skip ci]
This commit is contained in:
parent
abc941245e
commit
39224c651d
@ -36,14 +36,6 @@ def test_wheel(wheel, verbose=False):
|
|||||||
shutil.rmtree(envdir)
|
shutil.rmtree(envdir)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
# Temp hack to patch issue pypa/pip#6885 in pip 19.2.2 and Python 3.8.
|
|
||||||
if sys.platform == "win32" and "-cp38-cp38-" in wheel and os.path.isdir(os.path.join(envdir, "Lib", "site-packages", "pip-19.2.2.dist-info")):
|
|
||||||
pep425tags = os.path.join(envdir, "Lib", "site-packages", "pip", "_internal", "pep425tags.py")
|
|
||||||
if os.path.isfile(pep425tags):
|
|
||||||
data = open(pep425tags, "r").read()
|
|
||||||
data = data.replace(" m = 'm'\n", " m = ''\n")
|
|
||||||
open(pep425tags, "w").write(data)
|
|
||||||
|
|
||||||
# Install pytest into the environment, as well as our wheel.
|
# Install pytest into the environment, as well as our wheel.
|
||||||
if subprocess.call([python, "-m", "pip", "install", "pytest", wheel]) != 0:
|
if subprocess.call([python, "-m", "pip", "install", "pytest", wheel]) != 0:
|
||||||
shutil.rmtree(envdir)
|
shutil.rmtree(envdir)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user