I’m working on my first project, and as I make progress I’m trying to figure out how I’ll package it with setuptools. I’m attempting to troubleshoot this egg-related error when running my setup.py:
Error in venv/Lib/site-packages/setuptools-40.8.0-py3.7.egg at line 2,
column 2:
if [basename $0
= “setuptools-40.8.0-py3.7.egg” ]
^
syntax erroregg2bam failed: Command ‘[‘egg2bam’, ‘-o’, ‘C:\Users\Me\PycharmProjects\project\build\win_amd64\venv\Lib\site-packages\setuptools-40.8.0-py3.7.egg.bam’, ‘-pd’, ‘C:\Users\Me\PycharmProjects\project\venv\Lib\site-packages’, ‘-ps’, ‘rel’, ‘venv\L
ib\site-packages\setuptools-40.8.0-py3.7.egg’]’ returned non-zero exit status 1.
My setup.py:
> from setuptools import setup
>
> setup(
> name = "game",
> options = {
> "build_apps" : {
> "include_patterns" : [
> "**/*.png",
> "**/*.ogg",
> "**/*.txt",
> "**/*.egg",
> "**/*.bam",
> "Fonts/*"
> ],
> "gui_apps" : {
> "MatW" : "testRoom.py"
> },
> 'package_data_dirs': {
> 'simplepbr': [
> ('simplepbr/shaders*', '', {}),
> ],
> },
> "plugins" : [
> "pandagl",
> "p3openal_audio"
> ],
> "platforms" : [
> "win_amd64"
> ],
> "log_filename" : "$USER_APPDATA/MatW/output.log",
> "log_append" : False
> }
> }
> )
Out of curiosity I ran setup.py from the Asteroids sample and that resulting application works fine, so it has something to do with my project. With my game, the application is created but does not open. Not sure where to turn next so any pointers are appreciated!