Skip to content

The virtual environment does not have the system packages as expected #10500

@jnikula

Description

@jnikula

Details

Expected Result

I'm installing python3-clang using apt, enabling python.system_packages, and expect my Sphinx extension to be able to import the package.

build:
  os: ubuntu-22.04
  tools:
    python: "3.11"
  apt_packages:
    - python3-clang

python:
  install:
    - method: pip
      path: .
  system_packages: true

The build log shows the system package was installed, and --system-site-packages was passed to the virtual environment.

Actual Result

Import fails with ModuleNotFoundError: No module named 'clang'.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions