Skip to content

'setup.py install --skip-build' misses generated files #16005

@mgorny

Description

@mgorny

Reproducing code example:

python3.8 setup.py build config_fc --noopt --noarch --fcompiler=gnu95
python3.8 setup.py install --skip-build --root=<some-directory> config_fc --noopt --noarch --fcompiler=gnu95

Error message:

The install tree is missing the following files that are normally installed (without --skip-build):

/usr/lib/python3.8/site-packages/numpy/core/include/numpy/__multiarray_api.h
/usr/lib/python3.8/site-packages/numpy/core/include/numpy/multiarray_api.txt
/usr/lib/python3.8/site-packages/numpy/core/include/numpy/_numpyconfig.h
/usr/lib/python3.8/site-packages/numpy/core/include/numpy/__ufunc_api.h
/usr/lib/python3.8/site-packages/numpy/core/include/numpy/ufunc_api.txt
/usr/lib/python3.8/site-packages/numpy/core/lib/npy-pkg-config/mlib.ini
/usr/lib/python3.8/site-packages/numpy/core/lib/npy-pkg-config/npymath.ini

Numpy/Python version information:

$ python -c  'import sys, numpy; print(numpy.__version__, sys.version)'
1.17.4 3.8.2 (default, Apr  4 2020, 10:16:10) 
[GCC 9.2.0]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions