[Distutils] a package with is a module
donald at stufft.io
Tue Oct 28 19:22:27 CET 2014
> On Oct 28, 2014, at 2:20 PM, Ethan Furman <ethan at stoneleaf.us> wrote:
> On 10/27/2014 08:26 AM, Paul Moore wrote:
>> On 27 October 2014 15:07, Ethan Furman <ethan at stoneleaf.us> wrote:
>>> Paul Moore also declaimed:
>>>> Alternatively, you could distribute all 3 files [...]
>>> The problem I have with this method is that the last time I tried it
>>> setup.py attempted to pre-compile all the files, resulting in syntax errors,
>>> which makes for a lousy user experience.
>> Yeah, it's harmless but ugly. I've seen that issue myself.
> For the record, I thought setting PYTHONDONTWRITEBYTECODE from inside the setup.py script:
> os.environ['PYTHONDONTWRITEBYTECODE'] = True
> might do the trick, but
> - it isn't available on 2.5
> - it doesn't work on 2.6 (didn't test on 2.7 nor 3.x)
> Oh well. Guess I'll include a note that says, "Ignore any syntax errors during 'setup.py install', they're harmless."
> Distutils-SIG maillist - Distutils-SIG at python.org
I think the next version of pip might hide this unless an error in install actually occurs. I could be wrong though.
PGP: 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA
More information about the Distutils-SIG