Hello, My code is versionned using Perforce, and when creating a source distribution, I get this error : $ python setup.py sdist [...] copying setup.cfg -> foo-0.4.0 Writing foo-0.4.0/setup.cfg error: foo-0.4.0/setup.cfg: Permission denied
That's happening because Perforce forces files to be read-only when not "Perforce opened". If I do a "p4 open setup.cfg" before creating the source distribution, the setup.cfg file will be writable, so will its copy, and the source distribution is created without any issue. I currently use a more hackish workaround : chmod +w setup.cfg ; python setup.py sdist ; chmod -w setup.cfg But that's ugly. Does anyone know a cleaner way to bypass this issue ? Thanks, Philippe Muller
_______________________________________________ Distutils-SIG maillist - [email protected] https://mail.python.org/mailman/listinfo/distutils-sig
