|
This adds a new command install_clib
- The library is built as a conventional C library (by the build_clib command)
- It does respect the --record and works to build egg (at least on my configuration).
- info necessary to build/link against those installed C libraries are handled through simple .ini files, and are retrieved through a simple function call.
- both numpy.distutils and numscons builds are supported
Example of usage: see add_installed_library in numpy/core/setup.py.
The npymath library can be reused as follows:
from numpy.distutils.misc_util import get_info
config.add_library('foo',
sources=['foo.c'],
extra_info=get_info('npymath'))
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+919 lines, -33 lines) |
Patch |
 |
|
doc/source/reference/distutils.rst
|
View
|
2
|
2 chunks |
+99 lines, -0 lines |
0 comments
|
Download
|
 |
|
numpy/core/SConscript
|
View
|
|
1 chunk |
+13 lines, -1 line |
0 comments
|
Download
|
 |
|
numpy/core/mlib.ini.in
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
|
numpy/core/npymath.ini.in
|
View
|
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
 |
|
numpy/core/setup.py
|
View
|
1
2
|
3 chunks |
+25 lines, -3 lines |
0 comments
|
Download
|
 |
|
numpy/core/setupscons.py
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
|
numpy/distutils/__init__.py
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
|
numpy/distutils/command/__init__.py
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
|
numpy/distutils/command/build_clib.py
|
View
|
|
3 chunks |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
|
numpy/distutils/command/build_ext.py
|
View
|
|
1 chunk |
+14 lines, -2 lines |
0 comments
|
Download
|
 |
|
numpy/distutils/command/build_src.py
|
View
|
|
3 chunks |
+68 lines, -1 line |
0 comments
|
Download
|
 |
|
numpy/distutils/command/install.py
|
View
|
1
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
|
numpy/distutils/command/install_clib.py
|
View
|
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
 |
|
numpy/distutils/command/scons.py
|
View
|
1
|
4 chunks |
+40 lines, -17 lines |
0 comments
|
Download
|
 |
|
numpy/distutils/core.py
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
|
numpy/distutils/misc_util.py
|
View
|
1
2
|
5 chunks |
+169 lines, -7 lines |
0 comments
|
Download
|
 |
|
numpy/distutils/npy_pkg_config.py
|
View
|
|
1 chunk |
+306 lines, -0 lines |
0 comments
|
Download
|
 |
|
numpy/distutils/numpy_distribution.py
|
View
|
1
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
|
numpy/distutils/tests/test_npy_pkg_config.py
|
View
|
|
1 chunk |
+94 lines, -0 lines |
0 comments
|
Download
|
Total messages: 4
|