Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: specify package build and runtime dependencies #72

Open
oxidase opened this issue Jun 19, 2024 · 0 comments
Open

feat: specify package build and runtime dependencies #72

oxidase opened this issue Jun 19, 2024 · 0 comments
Milestone

Comments

@oxidase
Copy link
Owner

oxidase commented Jun 19, 2024

Use case: psycopg package requires libpq library installed and running targets potentially work if libpq is installed in the system root FS and not hermetic. Sandboxed test targets fail with message

.../psycopg/psycopg/pq/__init__.py", line 106, in import_from_libpq
    raise ImportError(
ImportError: no pq wrapper available.
Attempts made:
- couldn't import psycopg 'c' implementation: No module named 'psycopg_c'
- couldn't import psycopg 'binary' implementation: No module named 'psycopg_binary'
- couldn't import psycopg 'python' implementation: libpq library not found

The suggested workaround in bazelbuild/rules_python#1348 to use psycopg2-binary is not recommended as mentioned in https://www.psycopg.org/docs/install.html#psycopg-vs-psycopg-binary

@oxidase oxidase added this to the 0.4.0 milestone Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant