Skip to content
This repository was archived by the owner on Jan 1, 2026. It is now read-only.
This repository was archived by the owner on Jan 1, 2026. It is now read-only.

python3.13 wheels on PyPi #23

Description

@samatjain

Any chance of publishing Python 3.13 wheels on PyPi? That, or including a copy of lib/xor_singleheader inside the PyPi-published source package?

Attempting to build from the source package published on PyPi does not work:

$ pip install --verbose pyxorfilter
...
  Traceback (most recent call last):
    File "/home/xjjk/tmp/tmp-venv/venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_proc
ess/_in_process.py", line 389, in <module>
      main()
      ~~~~^^
    File "/home/xjjk/tmp/tmp-venv/venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_proc
ess/_in_process.py", line 373, in main
      json_out["return_val"] = hook(**hook_input["kwargs"])
                               ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/xjjk/tmp/tmp-venv/venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_proc
ess/_in_process.py", line 175, in prepare_metadata_for_build_wheel
      return hook(metadata_directory, config_settings)
    File "/tmp/pip-build-env-f2yujup7/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", li
ne 377, in prepare_metadata_for_build_wheel
      self.run_setup()
      ~~~~~~~~~~~~~~^^
    File "/tmp/pip-build-env-f2yujup7/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", li
ne 320, in run_setup
      exec(code, locals())
      ~~~~^^^^^^^^^^^^^^^^
    File "<string>", line 4, in <module>
    File "/tmp/pip-build-env-f2yujup7/overlay/lib/python3.13/site-packages/setuptools/__init__.py", line
 117, in setup
      return distutils.core.setup(**attrs)
             ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
    File "/tmp/pip-build-env-f2yujup7/overlay/lib/python3.13/site-packages/setuptools/_distutils/core.py
", line 148, in setup
      _setup_distribution = dist = klass(attrs)
                                   ~~~~~^^^^^^^
    File "/tmp/pip-build-env-f2yujup7/overlay/lib/python3.13/site-packages/setuptools/dist.py", line 323
, in __init__
      _Distribution.__init__(self, dist_attrs)
      ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-f2yujup7/overlay/lib/python3.13/site-packages/setuptools/_distutils/dist.py", line 309, in __init__
      self.finalize_options()
      ~~~~~~~~~~~~~~~~~~~~~^^
    File "/tmp/pip-build-env-f2yujup7/overlay/lib/python3.13/site-packages/setuptools/dist.py", line 786, in finalize_options
      ep(self)
      ~~^^^^^^
    File "/tmp/pip-build-env-f2yujup7/overlay/lib/python3.13/site-packages/setuptools/dist.py", line 806, in _finalize_setup_keywords
      ep.load()(self, ep.name, value)
      ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-f2yujup7/normal/lib/python3.13/site-packages/cffi/setuptools_ext.py", line 216, in cffi_modules
      add_cffi_module(dist, cffi_module)
      ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-f2yujup7/normal/lib/python3.13/site-packages/cffi/setuptools_ext.py", line 49, in add_cffi_module
      execfile(build_file_name, mod_vars)
      ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-f2yujup7/normal/lib/python3.13/site-packages/cffi/setuptools_ext.py", line 25, in execfile
      exec(code, glob, glob)
      ~~~~^^^^^^^^^^^^^^^^^^
    File "pyxorfilter/ffibuild.py", line 10, in <module>
      with open("lib/xor_singleheader/include/xorfilter.h", "r", encoding='utf-8') as src:
           ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  FileNotFoundError: [Errno 2] No such file or directory: 'lib/xor_singleheader/include/xorfilter.h'
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) 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.
  full command: /home/xjjk/tmp/tmp-venv/venv/bin/python3.13 /home/xjjk/tmp/tmp-venv/venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmp1nmbyc_7
  cwd: /tmp/pip-install-eaetlwhk/pyxorfilter_c1551f3302a44ebaa2e392b6b3069476
  Preparing metadata (pyproject.toml) ... error
error: metadata-generation-failed


× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Checking out pyxorfilter from git, git submodule init, and building per README does work however.

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