This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sylvain.corlay
Recipients dstufft, eric.araujo, sylvain.corlay
Date 2016-06-14.11:49:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1465904970.17.0.774152551079.issue27317@psf.upfronthosting.co.za>
In-reply-to
Content
When specifying an empty list for the list of data_files in a given directory, the entire directory is being deleted on uninstall of the wheel, even if it contained other resources.

Example:

```
from setuptools import setup

setup(name='remover', data_files=[('share/plugins', [])])
```

The expected behavior is that only the specified list of files is removed, (which is empty in that case).

When the list is not empty, the behavior is the one expected. For example

```
from setuptools import setup

setup(name='remover', data_files=[('share/plugins', ['foobar.json'])])
```

will only remove `foobar.json` on uninstall and the `plugins` directory will not be removed if it is not empty.
History
Date User Action Args
2016-06-14 11:49:30sylvain.corlaysetrecipients: + sylvain.corlay, eric.araujo, dstufft
2016-06-14 11:49:30sylvain.corlaysetmessageid: <1465904970.17.0.774152551079.issue27317@psf.upfronthosting.co.za>
2016-06-14 11:49:30sylvain.corlaylinkissue27317 messages
2016-06-14 11:49:29sylvain.corlaycreate