Package: pybliss-wyattpeak
PyBliss - a Python wrapper for blissNote: This is a reimplementation of Tommi Junttila'sPyBlisspackage, modified to support both Python 2 and Python 3, and run on both Linux and Windows. The original is available at the page linked above.PyBliss is a Python (http://www.python.org/) wrapper for the bliss graph canonical labeling tool (http://www.tcs.hut.fi/Software/bliss/). The source code of bliss is included in this directory.For performance critical software, please use the C++ interface of bliss instead of this Python wrapper.InstallationPyBliss can be installed through pip:$pipinstallpybliss-wyattpeakBuilding from sourceBuilding for your local machine (Linux)Python 3Navigate into the main project directory, there should be a filesetup.py.Create a virtual environment:$ python3 -m venv bliss-venvActivate the virtual environment:$ source bliss-venv\bin\activateInstall build:$ pip install buildRun build:$ python3 -m buildYour wheel should now be in./dist/.Python 2Navigate into the main project directory, there should be a filesetup.py.Create a virtual environment:$ virtualenv -p /PATH/TO/PYTHON2 bliss-venvActivate the virtual environment:$ source bliss-venv\bin\activateInstall build:$ pip install buildRun build:$ python2 -m buildYour wheel should now be in./dist/.Building for your local machine (Windows)Python 3Navigate into the main project directory, there should be a filesetup.py.Create a virtual environment:> python -m venv bliss-venvActivate the virtual environment:> bliss-venv\Scripts\activate.batInstall build:> pip install buildRun build:> python -m buildYour wheel should now be in.\dist\.Python 2Navigate into the main project directory, there should be a filesetup.py.Create a virtual environment:> \PATH\TO\VIRTUALENV.EXE bliss-venvActivate the virtual environment:> bliss-venv\Scripts\activate.batInstall build:> pip install buildRun build:> python -m buildYour wheel should now be in.\dist\.Building a manylinux wheelNavigate into the main project directory, there should be a filesetup.py.Start the manylinux Docker image, mounting the source directory to/io:$ docker run -tiv $(pwd):/io quay.io/pypa/manylinux2010_x86_64 /bin/bashNavigate to/io:$ cd /ioRun build (You'll need to specify which version of python to use, we'll use 3.8.):$ /opt/python/cp38-cp38/bin/python -m buildYou'll now have a single-linux version in./dist/.Useauditwheel repairto turn it into a manylinux version. You'll need to specify which manylinux version, you can see the options withauditwheel repair -h.$ auditwheel repair --plat manylinux1_x86_64 dist/pybliss_wyattpeak-0.1.3-cp38-cp38-linux_x86_64.whlYour manylinux version is now in./wheelhouse/Note: The manylinux Docker image doesn't seem to support Python 2 wheels anymore. I don't use Python 2 so I'm not pursuing it, but if you have a solution let me know.Building for PyPIAll wheels necessary for a PyPI update can be built by runningbuild.shin an Ubuntu shell andbuild.batin a Windows command prompt.You will need Docker installed on your Ubuntu system, and will need to update the variablesENV_PYTHON2_DIRandENV_PYTHON3_DIRinbuild.batto point to the root directories of the relevant virtual environment folders.Recompiling Cython scriptsIf you want to recompile_graph.pyxfor any reason, you'll need to build with Cython:Inpyproject.toml, add the entry"cython"torequires.Insetup.py, changeUSE_CYTHON = FalsetoUSE_CYTHON = True.After that, you can follow one of the sets of build instructions above.TestingIn order to run the tests, Python will need to be able to find the PyBliss package, so you'll need to install it first.Run all tests using:$python-munittestdiscoverThis will work for both Python 2 and Python 3.