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

Update build CI #713

Merged
merged 14 commits into from
Mar 20, 2024
Merged

Update build CI #713

merged 14 commits into from
Mar 20, 2024

Conversation

hoxbro
Copy link
Member

@hoxbro hoxbro commented Mar 20, 2024

Update build CI so it does not depend on pyctdev, split the build and publish up.

image


build:
noarch: python
script: python setup.py install --single-version-externally-managed --record=record.txt
script: {{ PYTHON }} -m pip install -vv {{ sdata['name'] }}-{{ VERSION }}-py3-none-any.whl
Copy link
Member

Choose a reason for hiding this comment

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

I'm curious, is that the standard approach for building a conda package, i.e. first run python -m build ... and then conda build ..., with the script set up to point to the wheel?

Copy link
Member Author

Choose a reason for hiding this comment

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

From a purist standpoint, it is not the correct way of doing it. You won't see it used on defaults or conda-forge as they want to build it from the bottom.

From a maintainer standpoint, in my mind, it is so much easier to use the wheel and keep them separated. If a wheel can be built, then creating the conda package will not have a package-built problem. There could still be other problems with the conda-build, but that's at least one less hurdle to debug when things go wrong.

Copy link
Member

Choose a reason for hiding this comment

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

Ok I see thanks. It's what Bokeh does too apparently, except they run it with --no-deps. Not sure what's the best practice there.

https://github.com/bokeh/bokeh/blob/69c084e692d79632c97ea1cfc5ceb10d0217e6f4/conda/recipe/meta.yaml#L13

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't have any objections to adding --no-deps. You are welcome to add it.

@hoxbro hoxbro merged commit 2c83c20 into main Mar 20, 2024
18 checks passed
@hoxbro hoxbro deleted the update_build branch March 20, 2024 16:07
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