-
Notifications
You must be signed in to change notification settings - Fork 54
Description
Describe the bug
I tried to create a virtual environment to share, but I could not get it to compile.
To Reproduce
Steps to reproduce the behavior:
- Go on z/OS
- python -m venv ds
- cd ds
- . bin/activate
- alias pip="pip3"
- pip install --upgrade "git+https://github.com/ibm/detect-secrets.git@master#egg=detect-secrets"
Expected behavior
Installation finished with no issues
Screenshots
If applicable, add screenshots to help explain your problem.

Impact
Yes
Trying to set this up for all users on our system using a virtual environment.
include ffi.h
Additional context:
-
Operating environment,
-
z/OS 3.1
-
Host or local,
-
Operating System,
-
z/OS
-
Languages scanned etc;
-
Repo & build context links.
-
Log output
/local/bin/clang -DNDEBUG -O3 -D_XOPEN_SOURCE_EXTENDED -D_UNIX03_THREADS -D_POSIX_THREADS -D_OPEN_SYS_FILE_EXT -m64 -fvisibility=default -fzos-le-char-mode=ascii -fno-short-enums -DFFI_BUILDING=1 -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/home/hyder/ds/include -I/home/hyder/usr/lpp/IBM/cyp/v3r12/pyz/include/python3.12 -c src/c/_cffi_backend.c -o build/temp.os390-28.00-8561-cpython-312/src/c/_cffi_backend.o
src/c/_cffi_backend.c:15:10: fatal error: 'ffi.h' file not found
#include <ffi.h>
^~~~~~~
1 error generated.
error: command '/home/opnzos/local/bin/clang' failed with exit code 1
[end of output]note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for cffi Failed to build cffi ERROR: Could not build wheels for cffi, which is required to install pyproject.toml-based projects [end of output]note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.