Skip to content
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

zip_safe:False added to setup for python37b1 build failure. #386

merged 1 commit into from Feb 9, 2018


None yet
1 participant
Copy link

illume commented Feb 9, 2018

Was getting a build failure with python37 beta 1.
To avoid it, I set zip_safe:False. Which I think is the case anyway. I'm not sure anyone uses bdist_egg these days anyway, and I doubt it still works well everywhere.

With this change, I was able to get all tests passing on ubuntu xenial with a source install of python 3.7.0b1
SDL_VIDEODRIVER=dummy SDL_AUDIODRIVER=disk python3.7 -m pygame.tests --exclude opengl

zip_safe flag not set; analyzing archive contents...
Traceback (most recent call last):
  File "", line 566, in <module>
  File "/usr/local/lib/python3.7/distutils/", line 148, in setup
  File "/usr/local/lib/python3.7/distutils/", line 966, in run_commands
  File "/usr/local/lib/python3.7/distutils/", line 985, in run_command
  File "/usr/local/lib/python3.7/site-packages/setuptools/command/", line 67, in run
  File "/usr/local/lib/python3.7/site-packages/setuptools/command/", line 109, in do_egg_install
  File "/usr/local/lib/python3.7/distutils/", line 313, in run_command
  File "/usr/local/lib/python3.7/distutils/", line 985, in run_command
  File "/usr/local/lib/python3.7/site-packages/setuptools/command/", line 209, in run
    os.path.join(archive_root, 'EGG-INFO'), self.zip_safe()
  File "/usr/local/lib/python3.7/site-packages/setuptools/command/", line 245, in zip_safe
    return analyze_egg(self.bdist_dir, self.stubs)
  File "/usr/local/lib/python3.7/site-packages/setuptools/command/", line 355, in analyze_egg
    safe = scan_module(egg_dir, base, name, stubs) and safe
  File "/usr/local/lib/python3.7/site-packages/setuptools/command/", line 392, in scan_module
    code = marshal.load(f)
ValueError: bad marshal data (unknown type code)

cc #382

@illume illume merged commit b46fb08 into master Feb 9, 2018

3 of 4 checks passed

continuous-integration/travis-ci/pr The Travis CI build is in progress
continuous-integration/appveyor/branch AppVeyor build succeeded
continuous-integration/appveyor/pr AppVeyor build succeeded
continuous-integration/travis-ci/push The Travis CI build passed

@illume illume deleted the python37 branch Feb 9, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.