dewitters / MysticMine

MIT License
76 stars 23 forks source link

Pyrex is no longer at pypi #24

Open koutoftimer opened 3 years ago

koutoftimer commented 3 years ago

According to https://pypi.org/project/Pyrex/ and https://pip.pypa.io/en/latest/development/release-process/#python-2-support looks like pyrex can not be found on pypi anymore.

Workaround using wget

Copy/paste in your terminal.

cd /tmp && \
    wget "https://www.csse.canterbury.ac.nz/greg.ewing/python/Pyrex/Pyrex-0.9.9.tar.gz" && \
    tar xvpf Pyrex-0.9.9.tar.gz
    git clone https://github.com/dewitters/MysticMine.git && \
    cd MysticMine && \
    virtualenv -p 2.7 venv && \
    source ./venv/bin/activate && \
    python -m pip install pygame numpy && \
    pushd ../Pyrex-0.9.9 && \
    python setup.py build && \
    python setup.py install && \
    popd && \
    make && \
    ./MysticMine

Step by step description:

Warning: /tmp gets cleaned up after system shutdown/reboot, copy /tmp/MysticMine to /opt or ~/Games or somewhere else.

System info

Required tools: python2, virtualenv, wget, git. Consult your distribution about how to install them.

user $ python --version
Python 2.7.18

user $ python -m pip --version
pip 20.3.4 from /tmp/MysticMine/venv/lib64/python2.7/site-packages/pip (python 2.7

user $ virtualenv --version
virtualenv 20.4.7 from /usr/lib/python3.9/site-packages/virtualenv/__init__.py

user $ wget --version
GNU Wget 1.21.1 built on linux-gnu.

-cares +digest -gpgme +https +ipv6 -iri +large-file -metalink +nls 
-ntlm +opie -psl +ssl/openssl

user $ git --version
git version 2.32.0