Intro

This post compares the pytest results of dateutil to its nuitka-built .whl counterpart.

Dateutil standalone test have already been covered. Manual testing is now done to compare the pytest results of a nuitka wheel built using python setup.py bdist_nuitka to the regular pytest of the dateutil package. Testing is done to ensure that nuitka is building the wheel correctly. If the pytests pass/fail in the same way, that means Nuitka built the wheel properly. Else if the tests differ, then something is wrong. Virtualenv is used to create a clean environment with no outside pollution.

The pytest results were very similar:

Regular pytests: ============= 1977 passed, 76 skipped, 21 xfailed in 7.99 seconds =============
Nuitka wheel pytests: ============= 1976 passed, 76 skipped, 21 xfailed in 7.89 seconds =============
										

Steps to Reproduce

  1. Clone dateutil and nuitka into a new folder

  2. Inside the dateutil folder, issue python -m pip install -r requirements-dev.txt to install its requirements.

  3. Issue python -m pytest --disable-warnings , this runs the regular pytest for dateutil.

  4. Change into the nuitka folder and issue python setup.py develop .

  5. Change back into dateutil and issue python setup.py bdist_nuitka to build the dateutil wheel using nuitka. The newly built wheel should be found in the dist folder.

  6. Use pip to uninstall the existing dateutil, then issue python -m pip install followed by the newly built .whl filename.

  7. Issue python -m pytest --disable-warnings , this runs the nuitka-built wheel pytest for dateutil.