Skip to content

Commit

Permalink
Do not install binary wheels.
Browse files Browse the repository at this point in the history
  • Loading branch information
dumol committed Jun 3, 2024
1 parent 87713dd commit e7e0fb6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 69 deletions.
11 changes: 0 additions & 11 deletions build.conf
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,7 @@ SETUPTOOLS_VERSION="69.0.2"

# Python modules versions to be used everywhere possible.
# Latest cryptography/bcrypt require Rust, use only wheels for them.
CFFI_VERSION="1.16.0"
BCRYPT_VERSION="4.1.1"
PSUTIL_VERSION="5.9.6"
SETPROCTITLE_VERSION="1.3.3"
MARKUPSAFE_VERSION="2.1.3"
CHARSETNORMALIZER_VERSION="3.3.2"
PYWIN32_VERSION="306"

# pycparser is explicitly installed to work around setuptools auto dependencies.
PYCPARSER_VERSION="2.21"
Expand All @@ -68,12 +62,7 @@ BUILD_SQLITE="yes"
PIP_INDEX_URL="https://bin.chevah.com:20443/pypi/simple"
# Array of default Python modules installed using pip.
PIP_LIBRARIES=(\
cffi=="$CFFI_VERSION" \
bcrypt=="$BCRYPT_VERSION" \
psutil=="$PSUTIL_VERSION" \
setproctitle=="$SETPROCTITLE_VERSION"
MarkupSafe=="$MARKUPSAFE_VERSION" \
charset-normalizer=="$CHARSETNORMALIZER_VERSION" \
)
# Array of default pip options.
PIP_ARGS=(\
Expand Down
58 changes: 0 additions & 58 deletions src/chevah-python-tests/test_python_binary_dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,30 +379,6 @@ def main():
sys.stderr.write('"multiprocessing" is missing or broken.\n')
exit_code = 140

try:
import cffi
ffibuilder = cffi.FFI()
except:
sys.stderr.write('"cffi" is missing or broken.\n')
exit_code = 141
else:
print ('cffi %s' % (cffi.__version__,))

try:
import bcrypt
password = b"super secret password"
# Hash the password with a randomly-generated salt.
hashed = bcrypt.hashpw(password, bcrypt.gensalt())
# Check that an unhashed password matches hashed one.
if bcrypt.checkpw(password, hashed):
print('bcrypt %s' % (bcrypt.__version__,))
else:
sys.stderr.write('"bcrypt" is present, but broken.\n')
exit_code = 146
except:
sys.stderr.write('"bcrypt" is missing.\n')
exit_code = 147

try:
import bz2
test_string = b"just a random string to quickly test bz2"
Expand All @@ -429,15 +405,6 @@ def main():
sys.stderr.write('"lzma" is missing.\n')
exit_code = 151

try:
import setproctitle
current_process_title = setproctitle.getproctitle()
except:
sys.stderr.write('"setproctitle" is missing or broken.\n')
exit_code = 150
else:
print('setproctitle %s' % (setproctitle.__version__,))

try:
from sqlite3 import dbapi2 as sqlite
except:
Expand Down Expand Up @@ -465,24 +432,6 @@ def main():
else:
print('"uuid" module is present.')

try:
from charset_normalizer import from_path
tmp_results = from_path('../README.rst')
except:
sys.stderr.write('"charset-normalizer" is missing or broken.\n')
exit_code = 164
else:
print('"charset-normalizer" module is present.')

try:
from markupsafe import escape
tmp_text = escape('<script>alert(document.cookie);</script>')
except:
sys.stderr.write('"markupsafe" is missing or broken.\n')
exit_code = 165
else:
print('"markupsafe" module is present.')

if os.name == 'nt':
# Windows specific modules.
try:
Expand All @@ -494,13 +443,6 @@ def main():
else:
print('ctypes %s' % (ctypes.__version__,))

try:
import win32api
win32api.GetCurrentThread()
except Exception as error:
sys.stderr.write('"pywin32" missing or broken.\n {}'.format(error))
exit_code = 172

else:
# Linux / Unix stuff.
try:
Expand Down

0 comments on commit e7e0fb6

Please sign in to comment.