New submission from Wichert Akkerman <[email protected]>:

I ran into something odd related to handling of symlinks today. I have a source 
which contains a symlink. The relevant directory looks like this:

drwxr-xr-x  5 wichert staff  170 Oct  1 10:55 ./
drwxr-xr-x 40 wichert staff 1360 Oct  1 10:55 ../
lrwxr-xr-x  1 wichert staff   20 Oct  1 10:55 editor_plugin.js -> 
editor_plugin_src.js
-rw-r--r--  1 wichert staff 1159 Oct  1 10:55 editor_plugin_src.js

when I create an sdist both the original file and the symlink are included in 
the .tar.gz. When I install the distribution using the sdist as uploaded on 
pypi the same directory in the generated egg looks like this:

drwxr-xr-x  3 wichert staff  102 Sep 30 14:50 ./
drwxr-xr-x 39 wichert staff 1326 Sep 30 14:50 ../
-rw-r--r--  1 wichert staff 1159 Sep 30 14:50 editor_plugin.js

the symlink has been replaced with a copy, but the original went missing. 
Unfortunately both filenames are used, so the result is a broken package.

The relevant package is NuPlone 1.0b2 
(http://pypi.python.org/packages/source/N/NuPlone/NuPlone-1.0b2.tar.gz), and 
the directory is plonetheme/nuplone/z3cform/tiny_mce/plugins/linefield .

----------
messages: 555
nosy: wichert
priority: bug
status: unread
title: extracting of symlinks looses original

_______________________________________________
Setuptools tracker <[email protected]>
<http://bugs.python.org/setuptools/issue118>
_______________________________________________
_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to