Skip to content

automatically rebuild pycups - #2

Merged
anothingguy merged 1 commit into
devfrom
feat/rebuild_pycups
Jul 22, 2026
Merged

automatically rebuild pycups#2
anothingguy merged 1 commit into
devfrom
feat/rebuild_pycups

Conversation

@anothingguy

Copy link
Copy Markdown
Collaborator

No description provided.

@anothingguy
anothingguy force-pushed the feat/rebuild_pycups branch from 54e2d8e to 4ceccc2 Compare July 22, 2026 11:03
@anothingguy
anothingguy merged commit 7f26155 into dev Jul 22, 2026
5 checks passed
Comment thread DEVELOP.md
pip install --no-binary :all: --force-reinstall pycups
```

Generated `.deb` packages already do this automatically (see `override_dh_virtualenv` in

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

but this runs on the runner, so it will still rebuild for the available instructions in the runner if you don't put any constraint

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think you would need something like that at build step (for all versions)

DEB_CFLAGS_SET: "-march=x86-64 -mtune=generic"
DEB_CXXFLAGS_SET: "-march=x86-64 -mtune=generic"
CFLAGS: "-march=x86-64 -mtune=generic"
CXXFLAGS: "-march=x86-64 -mtune=generic"

Comment thread debian/rules
dh_virtualenv --python=$(SNAKE) --builtin-venv
# the prebuilt pycups wheel needs AVX; force it to build from source so
# the packaged venv also works on weak/old CPUs (e.g. Celeron J4125)
dh_virtualenv --python=$(SNAKE) --builtin-venv --extra-pip-arg="--no-binary=pycups"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

actually it seems there is no binary wheel for pycups:

# pip download pycups --no-deps --only-binary=:all:
ERROR: Could not find a version that satisfies the requirement pycups (from versions: none)
ERROR: No matching distribution found for pycups

so it gets build everytime
so no need for this override, just need flags at higher level

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

Successfully merging this pull request may close these issues.

2 participants