mirror of
https://github.com/certbot/certbot.git
synced 2026-06-04 22:33:00 -04:00
Remove wheel hack in windows installer construction script
This commit is contained in:
parent
f4fc3e636d
commit
7b0e0c7601
2 changed files with 2 additions and 20 deletions
|
|
@ -83,10 +83,10 @@ PyGithub==1.52
|
|||
Pygments==2.2.0
|
||||
pyjwt==1.7.1
|
||||
pylint==2.4.3
|
||||
pynacl==1.3.0
|
||||
# If pynsist version is upgraded, our NSIS template windows-installer/template.nsi
|
||||
# must be upgraded if necessary using the new built-in one from pynsist.
|
||||
pynacl==1.3.0
|
||||
pynsist==2.6
|
||||
pynsist==2.7
|
||||
pytest==3.2.5
|
||||
pytest-cov==2.5.1
|
||||
pytest-forked==0.2
|
||||
|
|
|
|||
|
|
@ -1,13 +1,10 @@
|
|||
#!/usr/bin/env python3
|
||||
import contextlib
|
||||
import ctypes
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
import struct
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
import time
|
||||
|
||||
PYTHON_VERSION = (3, 8, 8)
|
||||
|
|
@ -52,21 +49,6 @@ def _compile_wheels(repo_path, build_path, venv_python):
|
|||
command.extend(wheels_project)
|
||||
subprocess.check_call(command, env=env)
|
||||
|
||||
# Cryptography uses now a unique wheel name "cryptography-VERSION-cpXX-abi3-win32.whl where
|
||||
# cpXX is the lowest supported version of Python (eg. cp36 says that the wheel is compatible
|
||||
# with Python 3.6+). While technically valid to describe a wheel compliant with the Stable
|
||||
# Application Binary Interface, this naming convention makes pynsist falsely think that the
|
||||
# wheel is compatible with Python 3.6 only.
|
||||
# Let's trick pynsist by renaming the wheel until this is fixed upstream.
|
||||
for file in os.listdir(wheels_path):
|
||||
# Given that our Python version is 3.8, this rename files like
|
||||
# cryptography-VERSION-cpXX-abi3-win32.whl into cryptography-VERSION-cp38-abi3-win32.whl
|
||||
renamed = re.sub(r'^(.*)-cp\d+-abi3-(\w+)\.whl$', r'\1-cp{0}{1}-abi3-\2.whl'
|
||||
.format(PYTHON_VERSION[0], PYTHON_VERSION[1]), file)
|
||||
print(renamed)
|
||||
if renamed != file:
|
||||
os.replace(os.path.join(wheels_path, file), os.path.join(wheels_path, renamed))
|
||||
|
||||
|
||||
def _prepare_build_tools(venv_path, venv_python, repo_path):
|
||||
print('Prepare build tools')
|
||||
|
|
|
|||
Loading…
Reference in a new issue