pynss-dev / python-nss

Python bindings for Network Security Services (NSS) and Netscape Portable Runtime (NSPR).
GNU General Public License v2.0
1 stars 2 forks source link

Update build process for setuptools #7

Closed kuwv closed 2 years ago

kuwv commented 2 years ago

Overview Distutils is deprecated: https://peps.python.org/pep-0632/

The project needs to be updated to use setuptools its vendored version of distutils.

Acceptance Ensure the build can be performed using setuptools only.

kuwv commented 2 years ago

@saper

Could you review this please?

python3 -m venv .env
source .env/bin/activate

Then:

pip install -r dev-requirements.txt
python setup.py build
./tests/run_tests.py

There still one issue that is a problem. Using python setup.py build is also deprecated but there is an error when running python -m build (pep517).