Closed
Description
Issue description
The get_include()
call on python 3.7 for version 2.3.0 is missing a subdirectory 'python3.7m'
when installed using conda (but not when installed using pip).
Reproducible example code
First pip installation works correctly:
$ pip install pybind11
Collecting pybind11
Using cached https://files.pythonhosted.org/packages/5d/85/c7a8dffda52ce25a8bcfe9a28b6861bdd52da59ae001fdd4173e054b7d9b/pybind11-2.3.0-py2.py3-none-any.whl
Installing collected packages: pybind11
Successfully installed pybind11-2.3.0
$ python -c 'import pybind11; print(pybind11.__version__)'
2.3.0
$ python -c 'import pybind11; print(pybind11.get_include())'
/astro/u/mjarvis/.conda/envs/py3.7/include/python3.7m
$ find /astro/u/mjarvis/.conda/envs/py3.7/include/ -name pybind11.h
/astro/u/mjarvis/.conda/envs/py3.7/include/python3.7m/pybind11/pybind11.h
Uninstalling that, and installing via conda
does not work:
$ pip uninstall pybind11
[... snip ...]
Successfully uninstalled pybind11-2.3.0
$ conda install -y pybind11
Solving environment: done
]... snip ...]
The following NEW packages will be INSTALLED:
pybind11: 2.3.0-py37hc9558a2_2 conda-forge
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
$ python -c 'import pybind11; print(pybind11.__version__)'
2.3.0
$ python -c 'import pybind11; print(pybind11.get_include())'
/astro/u/mjarvis/.conda/envs/py3.7/include
$ find /astro/u/mjarvis/.conda/envs/py3.7/include/ -name pybind11.h
/astro/u/mjarvis/.conda/envs/py3.7/include/python3.7m/pybind11/pybind11.h
Note the last two results. The pybind11.h
file is in the same place as for pip. But get_include()
is missing the python3.7m
part.
Metadata
Metadata
Assignees
Labels
No labels