Skip to content

Commit 662cd67

Browse files
committed
setup.py: drop data_files, installs LICENSE to incorrect place
As reported in issue xmlrunner#284, the data_files statement in the setup() calls installs the LICENSE file in the wrong place: in /usr/LICENSE, or even /LICENSE depending on the configuration. So let's drop this, and let setuptools install the LICENSE file automatically: since setuptools v56, the license_files attribute is automatically assigned to a default value, which includes "LICENSE", so there is in fact nothing to do to the get the LICENSE file installed at the correct location. See https://setuptools.pypa.io/en/latest/history.html#v56-0-0. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
1 parent 3a2be20 commit 662cd67

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
description = 'unittest-based test runner with Ant/JUnit like XML reporting.',
2828
long_description = long_description,
2929
long_description_content_type = 'text/markdown',
30-
data_files = [('', ['LICENSE'])],
3130
install_requires = ['lxml'],
3231
license = 'BSD',
3332
platforms = ['Any'],

0 commit comments

Comments
 (0)