New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build fails on Python 3.7.0b1 #382
Comments
|
The source file pypm.c needs to be regenerated with Cython >= 0.27.3 for Python 3.7 support (it looks like it was last done with Cython 0.11.2 in 2011). |
|
There's a PR open to regenerate it (#345), but still not with a recent enough Cython. I think it would be better, though, to remove |
|
#345 has been merged, so perhaps this can be verified and closed? |
|
Please do check, but from your earlier comment I think it's still not using a recent enough Cython (#345 used 0.26). So it may need to be updated again. |
|
Oh snap, I see where the comments mention 0.27.3 but no one actually does the update. I misremembered that as the update getting done. Apologies for the noise. |
|
I had to work around an issue with bdist_egg in #386. But now all tests pass for me locally. When we do another release, people who build from source will be able to use pip install on python37 again. Travis and apveyor don't support 3.7 yet of course, but we can start testing I guess. Python release notes aren't clear on which compiler they are doing the releases on for windows and such... hopefully it's not having to a recompile all the dependencies situation. Will have to try and see. @jamadden Sorry I didn't update you here that I regenerated the pypm yesterday, but wanted to complete some testing with my midi gear first before pushing that. |
|
I couldn't find any 3.7 ppa yet, so here's a little script for xenial which worked-for-me. # Sets up python3.7.0b1 and pygame for a vagrant ubuntu xenial install
# vagrant init ubuntu/xenial64
# vagrant up
# vagrant ssh
sudo apt-get -y update
sudo apt-get -y build-dep python3.5
sudo apt-get -y install python3-dev python3-setuptools python3-numpy python3-opengl libav-tools libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsmpeg-dev libsdl1.2-dev libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev libtiff5-dev libx11-6 libx11-dev fluid-soundfont-gm timgm6mb-soundfont xfonts-base xfonts-100dpi xfonts-75dpi xfonts-cyrillic fontconfig fonts-freefont-ttf
wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0b1.tgz
tar xf Python-3.7.0b1.tgz
cd Python-3.7.0b1/
./configure --prefix=/usr/local/ --enable-shared LDFLAGS="-Wl,--rpath=/usr/local/lib"
make clean
make -j4
sudo make install
cd ~
git clone git@github.com:pygame/pygame.git
cd pygame
python3.7 setup.py build
python3.7 setup.py install
sudo python3.7 setup.py install
SDL_VIDEODRIVER=dummy SDL_AUDIODRIVER=disk python3.7 -m pygame.tests --exclude opengl |
|
On Travis, you can add |
|
On Travis you can also explicitly ask for |
|
Oh yes. Thanks. A |
|
This should be fixed for pip users once we do a release soon. See #390 for status of that. |
pip install pygamefails on Python 3.7.0b1 with the following error:The text was updated successfully, but these errors were encountered: