Package is specified in [setup.py](setup.py). *Note: A new version must be specified in `setup.py` for every new upload of a package*
### macOS, Linux
Get necessary tools
Binary distribution:
`pip3 install wheel twine`
make bdist
*Note: As there appears to be no way to differentiate C and C++ code (and thus pass correct build args to each type) in a setuptools script we must separately build the `lwip` and `http_parser` libraries, copy them here, and then build the binary. See the top-level [README.md](../../README.md) for instructions on how to do that*
Alternatively, source Distribution:
make sdist
Upload to PyPI:
make upload
Cleanup:
make clean
### Windows
Build the binary distribution wheel:
Binary distribution:
`python3 setup.py bdist_wheel`
bdist.bat
Upload to PyPI
Source distribution:
`twine upload dist/*`
sdist.bat
Upload to PyPI:
upload.bat
Cleanup:
clean.bat
*Note: As there appears to be no way to differentiate C and C++ code (and thus pass correct build args to each type) in a setuptools script we must separately build the `lwip` and `http_parser` libraries, copy them here, and then build the binary. See the top-level [README.md](../../README.md) for instructions on how to do that*