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

khmer: python update to support python 3.8-3.11 #53327

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

dslarm
Copy link
Contributor

@dslarm dslarm commented Jan 20, 2025

  • khmer has build-failed on every platform for some time now.
  • project is no longer maintained, this PR is using PRs found at https://github.com/dib-lab/khmer to bring this recipe up to date.
  • use fresher cython files (the setup.py doesn't currently build these and takes the pre-built ones)
  • use fresher setuptools and update setup.py to source from moved (since setuptools 0.62.1) temporary directory during linking
  • disable aarch64/arm64 as cqf needs to be ported first.
    Net result should be a re-enabled for python 3.8-3.11 (prior versions fail, to enable 3.12, it may require cython files to be regenerated, but that should be a separate PR.

Describe your pull request here


Please read the guidelines for Bioconda recipes before opening a pull request (PR).

General instructions

  • If this PR adds or updates a recipe, use "Add" or "Update" appropriately as the first word in its title.
  • New recipes not directly relevant to the biological sciences need to be submitted to the conda-forge channel instead of Bioconda.
  • PRs require reviews prior to being merged. Once your PR is passing tests and ready to be merged, please issue the @BiocondaBot please add label command.
  • Please post questions on Gitter or ping @bioconda/core in a comment.

Instructions for avoiding API, ABI, and CLI breakage issues

Conda is able to record and lock (a.k.a. pin) dependency versions used at build time of other recipes.
This way, one can avoid that expectations of a downstream recipe with regards to API, ABI, or CLI are violated by later changes in the recipe.
If not already present in the meta.yaml, make sure to specify run_exports (see here for the rationale and comprehensive explanation).
Add a run_exports section like this:

build:
  run_exports:
    - ...

with ... being one of:

Case run_exports statement
semantic versioning {{ pin_subpackage("myrecipe", max_pin="x") }}
semantic versioning (0.x.x) {{ pin_subpackage("myrecipe", max_pin="x.x") }}
known breakage in minor versions {{ pin_subpackage("myrecipe", max_pin="x.x") }} (in such a case, please add a note that shortly mentions your evidence for that)
known breakage in patch versions {{ pin_subpackage("myrecipe", max_pin="x.x.x") }} (in such a case, please add a note that shortly mentions your evidence for that)
calendar versioning {{ pin_subpackage("myrecipe", max_pin=None) }}

while replacing "myrecipe" with either name if a name|lower variable is defined in your recipe or with the lowercase name of the package in quotes.

Bot commands for PR management

Please use the following BiocondaBot commands:

Everyone has access to the following BiocondaBot commands, which can be given in a comment:

@BiocondaBot please update Merge the master branch into a PR.
@BiocondaBot please add label Add the please review & merge label.
@BiocondaBot please fetch artifacts Post links to CI-built packages/containers.
You can use this to test packages locally.

Note that the @BiocondaBot please merge command is now depreciated. Please just squash and merge instead.

Also, the bot watches for comments from non-members that include @bioconda/<team> and will automatically re-post them to notify the addressed <team>.

- @mr-c for the python version updates dib-lab/khmer#1917
- added SETUPTOOLS_USE_DISTUTILS=stdlib to use older directory convention for temp .o files during setup.py
- remove linux-aarch64 as unsupported until cqf library is ported
we encounter a bug in python versioneer.
@dslarm
Copy link
Contributor Author

dslarm commented Jan 20, 2025

@BiocondaBot please add label

@BiocondaBot BiocondaBot added the please review & merge set to ask for merge label Jan 20, 2025
@@ -55,8 +58,9 @@ about:

extra:
additional-platforms:
- linux-aarch64
- osx-arm64
# needs cqf porting
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is cqf ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/splatlab/cqf
actually - looks like this only needs a tiny part to be done - gqf.c which has just 5 asm instructions to swap out: a popcnt (x2), bsr, pdep, tzcnt

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we merge this PR ?
Or you want to work on cqf first ?

@dslarm
Copy link
Contributor Author

dslarm commented Jan 20, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
please review & merge set to ask for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants