Open ccanepa opened 2 years ago
win7, py 3.8.10
in the py3.8 venv with only pygame and pgu installed, building the package with
python setup.py install
produces dist\pygame-pgu-0.21.tar.gz
Unpacking that file to a tmp dir, cd to it, try to install with
python setup.py install
in a new, clean venv produces a traceback:
...
zip_safe flag not set; analyzing archive contents...
pgu.gui.__pycache__.theme.cpython-38: module references __file__
creating dist
creating 'dist\pygame_pgu-0.21-py3.8.egg' and adding 'build\bdist.win-amd64\egg'
to it
Traceback (most recent call last):
File "setup.py", line 76, in <module>
main()
File "setup.py", line 73, in main
setup(**setup_args)
File "D:\dev\v\pgu_install\lib\site-packages\setuptools\__init__.py", line 153
, in setup
return distutils.core.setup(**attrs)
File "C:\Python38\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Python38\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Python38\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "D:\dev\v\pgu_install\lib\site-packages\setuptools\command\install.py", l
ine 67, in run
self.do_egg_install()
File "D:\dev\v\pgu_install\lib\site-packages\setuptools\command\install.py", l
ine 109, in do_egg_install
self.run_command('bdist_egg')
File "C:\Python38\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Python38\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "D:\dev\v\pgu_install\lib\site-packages\setuptools\command\bdist_egg.py",
line 225, in run
make_zipfile(self.egg_output, archive_root, verbose=self.verbose,
File "D:\dev\v\pgu_install\lib\site-packages\setuptools\command\bdist_egg.py",
line 451, in make_zipfile
visit(z, dirname, files)
File "D:\dev\v\pgu_install\lib\site-packages\setuptools\command\bdist_egg.py",
line 444, in visit
z.write(path, p)
File "C:\Python38\lib\zipfile.py", line 1741, in write
zinfo = ZipInfo.from_file(filename, arcname,
File "C:\Python38\lib\zipfile.py", line 539, in from_file
zinfo = cls(arcname, date_time)
File "C:\Python38\lib\zipfile.py", line 362, in __init__
raise ValueError('ZIP does not support timestamps before 1980')
ValueError: ZIP does not support timestamps before 1980
A pip install with
python -m pip install .
terminates normally, and the pgu themes appears in the
Installing pgu with pip in dev mode (-e) does not copy themes to lib/share