build notes:



After making any updates, and before trying build again:

rm -rf build dist *.egg-info PKG-INFO
rm -rf regina_* regina_cloned
rm -rf tokyocabinet* libxml*
rm regina-*


To build:

python setup.py package

To build wheels: the directly venvs contains virtual environments for Python 3.11-14. Do the following for each of these, replacing [XX] with 11, 12, 13, 14 in turn:

rm -rf build
source ./venvs/py3[XX]/bin/activate
python setup.py bdist_wheel


Once all the wheels are created, upload to PyPi:

python -m pip install twine      ## if needed
twine check dist/*
twine check regina-6.1.0b1.tar.gz      ## change the version if needed

twine upload dist/*
twine upload regina-6.1.0b1.tar.gz      ## change the version if needed





Things I had to do to get this to work (but shouldn't need to do again, unless computer is updated):

////   reinstall x-code:

sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --reset
xcode-select --install

///// install gmp and expose to the build:

brew install gmp

export CPPFLAGS="-I$(brew --prefix gmp)/include"
export LDFLAGS="-L$(brew --prefix gmp)/lib"

///// install boost and expose:

brew install boost

export HOMEBREW_PREFIX="$(brew --prefix)"

export CPPFLAGS="-I$HOMEBREW_PREFIX/include $CPPFLAGS"
export CXXFLAGS="-I$HOMEBREW_PREFIX/include $CXXFLAGS"
export CFLAGS="-I$HOMEBREW_PREFIX/include $CFLAGS"

export LDFLAGS="-L$HOMEBREW_PREFIX/lib $LDFLAGS"
export CMAKE_PREFIX_PATH="$HOMEBREW_PREFIX:$CMAKE_PREFIX_PATH"