NWChemEx / NWChemEx/ParallelZone

Python module gets installed in wrong site-package directory

Open
#158 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
0
Forks
1
Avg merge
40m
Merged PRs (30d)
3

Description

When configuring with -DPython_EXECUTABLE using python 3.11, the installation picks up the version number correctly

--   Found PythonInterp: $PREFIX/bin/python3 (found suitable version "3.11.15", minimum required is "3.8")
--   Found PythonLibs: $PREFIX/lib/libpython3.11.so
--   Performing Test HAS_FLTO_AUTO
--   Performing Test HAS_FLTO_AUTO - Success
--   Found pybind11: $PREFIX/include (found version "3.0.2")
-- pybind11 installation found
-- Could NOT find Python3 (missing: Python3_INCLUDE_DIRS Python3_LIBRARIES Development Development.Module Development.Embed) (found version "3.12.13")
-- Found Python: $PREFIX/bin/python (found version "3.11.15") found components: Interpreter Development Development.Module Development.Embed

However, later in the installation the extension module is installed for python 3.12

+ cmake --install _build
-- Install configuration: "Release"
-- Installing: $PREFIX/lib/python3.12/site-packages/parallelzone.so

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the configuration with -DPython_EXECUTABLE using Python 3.11, then run cmake --install _build and compare the detected Python versions with the destination path. Trace the installation configuration that produces $PREFIX/lib/python3.12/site-packages/parallelzone.so; done means the extension is installed under the selected Python 3.11 site-packages directory.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp, python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.