Skip to content

Commit ffde199

Browse files
committed
BLD: Include the license file in NumPy wheels.
The `LICENSE.txt` file needs to be in the numpy wheels in order to meet the terms of the linked libraries. Add it to the configuration data files so that it shows up in the numpy package.
1 parent 10d731b commit ffde199

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def _minimal_ext_cmd(cmd):
8181
env['LANGUAGE'] = 'C'
8282
env['LANG'] = 'C'
8383
env['LC_ALL'] = 'C'
84-
out = subprocess.Popen(cmd, stdout = subprocess.PIPE, env=env).communicate()[0]
84+
out = subprocess.Popen(cmd, stdout=subprocess.PIPE, env=env).communicate()[0]
8585
return out
8686

8787
try:
@@ -147,8 +147,8 @@ def write_version_py(filename='numpy/version.py'):
147147
a = open(filename, 'w')
148148
try:
149149
a.write(cnt % {'version': VERSION,
150-
'full_version' : FULLVERSION,
151-
'git_revision' : GIT_REVISION,
150+
'full_version': FULLVERSION,
151+
'git_revision': GIT_REVISION,
152152
'isrelease': str(ISRELEASED)})
153153
finally:
154154
a.close()
@@ -164,6 +164,7 @@ def configuration(parent_package='',top_path=None):
164164
quiet=True)
165165

166166
config.add_subpackage('numpy')
167+
config.add_data_files(('numpy', 'LICENSE.txt'))
167168

168169
config.get_version('numpy/version.py') # sets config.version
169170

0 commit comments

Comments
 (0)