[Python-Dev] Python 2.3b1, distutils and PEP 263

François Pinard pinard@iro.umontreal.ca
27 Jun 2003 06:54:58 -0400


Hi, people.

For quite a long time, I noticed that Distutils inserts a supplementary
white line when it transforms the shebang line.  There might be some reason
for this white line, and I'm curious about it.  This does not interact
nicely with PEP 263.  For example, the file:

---------------------------------------------------------------------->
#!/usr/bin/env python
# -*- coding: Latin-1 -*-

"""\
[...]
----------------------------------------------------------------------<

get installed by Distutils as:

---------------------------------------------------------------------->
#!/usr/bin/python

# -*- coding: Latin-1 -*-

"""\
[...]
----------------------------------------------------------------------<

and Python 2.3b1 does not see the `coding:' pragma on the third line.

-- 
François Pinard   http://www.iro.umontreal.ca/~pinard