[Distutils] lineendings
Robin Becker
robin@jessikat.fsnet.co.uk
Tue Oct 15 16:22:01 2002
In article <3DAC729A.10603@lemburg.com>, M.-A. Lemburg <mal@lemburg.com>
writes
.....
>
>Interesting. That must be related to Macs only, though, because
>I move around between Windows and Unix on a regular basis and
>have so far never had any problem with line ends.
>
I think you're right, MACS use only \r which won't work properly for unix \n
or dos \r\n.
I just tried unix format and that seems to work ok on dos,
but for 2.1.2 FreeBSD Python the dos and mac versions seem to be wrong
although I may be making some obvious mistake.
Python 2.1.2 (#1, Feb 22 2002, 15:59:03)
[GCC 2.95.3 20010315 (release) [FreeBSD]] on freebsd4
Type "copyright", "credits" or "license" for more information.
>>> open('/tmp/mac.py','wb').write('import reportlab,\r\\\trlextra\r')
>>> open('/tmp/dos.py','wb').write('import reportlab,\r\n\\\trlextra\r\n')
>>>
/usr/RL_HOME/users/robin:
# python /tmp/mac.py
File "/tmp/mac.py", line 1
\ imporlextrartlab,
^
SyntaxError: invalid syntax
/usr/RL_HOME/users/robin:
# python /tmp/dos.py
File "/tmp/dos.py", line 1
import reportlab,
^
SyntaxError: invalid syntax
as for zip last time I looked it wasn't available by default on Solaris 8 or
AIX etc etc, it's not even available by default on win32.
--
Robin Becker