Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/mingw32/Python27/Lib/site-packages/numpy/distutils/command/sdist.py @ 87:2a2c65a20a8b
Add Python libs and headers
author | Chris Cannam |
---|---|
date | Wed, 25 Feb 2015 14:05:22 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
86:413a9d26189e | 87:2a2c65a20a8b |
---|---|
1 from __future__ import division, absolute_import, print_function | |
2 | |
3 import sys | |
4 if 'setuptools' in sys.modules: | |
5 from setuptools.command.sdist import sdist as old_sdist | |
6 else: | |
7 from distutils.command.sdist import sdist as old_sdist | |
8 | |
9 from numpy.distutils.misc_util import get_data_files | |
10 | |
11 class sdist(old_sdist): | |
12 | |
13 def add_defaults (self): | |
14 old_sdist.add_defaults(self) | |
15 | |
16 dist = self.distribution | |
17 | |
18 if dist.has_data_files(): | |
19 for data in dist.data_files: | |
20 self.filelist.extend(get_data_files(data)) | |
21 | |
22 if dist.has_headers(): | |
23 headers = [] | |
24 for h in dist.headers: | |
25 if isinstance(h, str): headers.append(h) | |
26 else: headers.append(h[1]) | |
27 self.filelist.extend(headers) | |
28 | |
29 return |