Skip to content

migrate to pyproject.toml - #1876

Merged
casperdcl merged 5 commits into
masterfrom
pyproject
Aug 1, 2024
Merged

migrate to pyproject.toml#1876
casperdcl merged 5 commits into
masterfrom
pyproject

Conversation

@casperdcl

@casperdcl casperdcl commented Jul 22, 2024

Copy link
Copy Markdown
Member

Delete all the cruft! Oh and fix #1873.

misc

notes

incidentally you can already do pip install git+https://github.com/TomographicImaging/CIL@pyproject though for now it won't build libcilacc... will do that later in #1875

@casperdcl
casperdcl requested review from gfardell and paskino July 22, 2024 17:56
@casperdcl casperdcl self-assigned this Jul 22, 2024
Comment thread pyproject.toml Outdated
@casperdcl casperdcl added bug Something isn't working enhancement New feature or request high_priority Waiting for review labels Jul 22, 2024
@casperdcl casperdcl changed the title migrate to pyproject.toml migrate to pyproject.toml Jul 22, 2024
@casperdcl

This comment was marked as resolved.

@casperdcl
casperdcl force-pushed the pyproject branch 19 times, most recently from 3e39aa1 to 5e1ca4a Compare July 25, 2024 12:34
Comment on lines 1 to 4
option (BUILD_PYTHON_WRAPPER "Build Python Wrapper" ON)

if (BUILD_PYTHON_WRAPPER)
find_package(PythonInterp REQUIRED)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this necessary?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Perhaps not, given that I can't find any usages of BUILD_PYTHON_WRAPPER(:BOOL)=OFF on GitHub.
Would probably remove it in a different PR though.

@paskino paskino left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@casperdcl

casperdcl commented Jul 26, 2024

Copy link
Copy Markdown
Member Author

PKG_VERSION comes from recipe/meta.yaml::package.version :)

Comment thread recipe/build.sh
extra_args=""
fi

export SETUPTOOLS_SCM_PRETEND_VERSION_FOR_CIL="${PKG_VERSION}"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

SETUPTOOLS_SCM_PRETEND_VERSION_FOR_CIL

What is this for? and is PKG_VERSION set somewhere or is it a manual step? Currently it gets the version from git, I think historically CIL_VERSION had to be set - and maybe still is in some other repos.

- fixes #1873
- add setuptools_scm
- drop setup.py
  + part of #1875
- drop Wrappers/Python/CMake
@casperdcl
casperdcl merged commit 39a6ed0 into master Aug 1, 2024
@casperdcl
casperdcl deleted the pyproject branch August 1, 2024 15:31
This was referenced Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request high_priority Waiting for review

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Fail to build on docker with setuptools >=71

3 participants