Skip to content

Missing pacparser.h from python dist #254

Description

@glensc

Note: I'm facing metadata version errors for newer versions than 1.3.7:

But 1.5.1 also misses header file from the tarball:

$ tar tvf /tmp/pacparser-1.5.1.tar.gz 
drwxr-xr-x runner/runner     0 2026-04-17 11:05 pacparser-1.5.1/
-rw-r--r-- runner/runner    43 2026-04-17 11:04 pacparser-1.5.1/MANIFEST.in
-rw-r--r-- runner/runner   250 2026-04-17 11:05 pacparser-1.5.1/PKG-INFO
drwxr-xr-x runner/runner     0 2026-04-17 11:05 pacparser-1.5.1/pacparser/
-rw-r--r-- runner/runner  3408 2026-04-17 11:04 pacparser-1.5.1/pacparser/__init__.py
drwxr-xr-x runner/runner     0 2026-04-17 11:05 pacparser-1.5.1/pacparser.egg-info/
-rw-r--r-- runner/runner   250 2026-04-17 11:05 pacparser-1.5.1/pacparser.egg-info/PKG-INFO
-rw-r--r-- runner/runner   189 2026-04-17 11:05 pacparser-1.5.1/pacparser.egg-info/SOURCES.txt
-rw-r--r-- runner/runner     1 2026-04-17 11:05 pacparser-1.5.1/pacparser.egg-info/dependency_links.txt
-rw-r--r-- runner/runner    21 2026-04-17 11:05 pacparser-1.5.1/pacparser.egg-info/top_level.txt
-rw-r--r-- runner/runner  5411 2026-04-17 11:04 pacparser-1.5.1/pacparser_py.c
-rw-r--r-- runner/runner    38 2026-04-17 11:05 pacparser-1.5.1/setup.cfg
-rw-r--r-- runner/runner  5396 2026-04-17 11:04 pacparser-1.5.1/setup.py

From building from source for Python 3.11 Linux arm64, because no prebuilt wheel is not available:

#9 sha256:20935d5cfca98826b5188243a721d1aa332ab91d99a417fd4bbf1d67b69e517b
#9 2.376 Collecting pacparser==1.3.7
#9 2.378   Using cached pacparser-1.3.7.tar.gz (4.0 kB)
#9 2.382   Preparing metadata (setup.py): started
#9 2.867   Preparing metadata (setup.py): finished with status 'done'
#9 2.870 Saved /wheels/pacparser-1.3.7.tar.gz
#9 2.871 Successfully downloaded pacparser
#9 3.433 Processing /wheels/pacparser-1.3.7.tar.gz
#9 3.434   File was already downloaded /wheels/pacparser-1.3.7.tar.gz
#9 3.440   Preparing metadata (setup.py): started
#9 3.684   Preparing metadata (setup.py): finished with status 'done'
#9 3.688 Building wheels for collected packages: pacparser
#9 3.689   Building wheel for pacparser (setup.py): started
#9 4.018   Building wheel for pacparser (setup.py): finished with status 'error'
#9 4.023   error: subprocess-exited-with-error
#9 4.023   
#9 4.023   × python setup.py bdist_wheel did not run successfully.
#9 4.023   │ exit code: 1
#9 4.023   ╰─> [14 lines of output]
#9 4.023       running bdist_wheel
#9 4.023       running build
#9 4.023       running build_py
#9 4.023       creating build/lib.linux-aarch64-cpython-311/pacparser
#9 4.023       copying pacparser/__init__.py -> build/lib.linux-aarch64-cpython-311/pacparser
#9 4.023       running build_ext
#9 4.023       building '_pacparser' extension
#9 4.023       creating build/temp.linux-aarch64-cpython-311
#9 4.023       gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I../spidermonkey/js/src -I.. -I/usr/local/include/python3.11 -c pacparser_py.c -o build/temp.linux-aarch64-cpython-311/pacparser_py.o
#9 4.023       pacparser_py.c:22:10: fatal error: pacparser.h: No such file or directory
#9 4.023          22 | #include "pacparser.h"
#9 4.023             |          ^~~~~~~~~~~~~
#9 4.023       compilation terminated.
#9 4.023       error: command '/usr/bin/gcc' failed with exit code 1
#9 4.023       [end of output]
#9 4.023   
#9 4.023   note: This error originates from a subprocess, and is likely not a problem with pip.
#9 4.023   ERROR: Failed building wheel for pacparser
#9 4.023   Running setup.py clean for pacparser
#9 4.225 Failed to build pacparser
#9 4.225 ERROR: Failed to build one or more wheels
#9 ERROR: executor failed running [/bin/sh -c 	# Download wheels/sources
	pip download --dest /wheels pacparser==1.3.7

	# Build missing wheels
	set -- $(ls /wheels/*.gz /wheels/*.zip 2>/dev/null)
	pip wheel "$@" --wheel-dir=/wheels
]: exit code: 1
------
 > [build-wheels 1/1] RUN 	--mount=type=cache,id=pip,target=/root/.cache/pip 	--mount=type=cache,id=apt-cache,target=/var/cache/apt 	--mount=type=cache,id=apt-lib,target=/var/lib/apt <<eot (# Download wheels/sources...):
------
executor failed running [/bin/sh -c 	# Download wheels/sources
	pip download --dest /wheels pacparser==1.3.7

	# Build missing wheels
	set -- $(ls /wheels/*.gz /wheels/*.zip 2>/dev/null)
	pip wheel "$@" --wheel-dir=/wheels
]: exit code: 1

Reproduce steps:

docker build -f Dockerfile.pacparser . -o wheels --progress=plain

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions