Skip to content

Clean up setup.py#137

Open
roberthdevries wants to merge 1 commit into
wolfSSL:masterfrom
roberthdevries:cleanup-setup-py
Open

Clean up setup.py#137
roberthdevries wants to merge 1 commit into
wolfSSL:masterfrom
roberthdevries:cleanup-setup-py

Conversation

@roberthdevries

Copy link
Copy Markdown
Contributor
  • remove obsolete merging of LICENSING.rst in description as the include is not there anymore
  • put setuptools configuration in pyproject.toml
  • the setup_requires setting in setup.py is deprecated and is covered by pyproject.toml [build-system] - requires

@dgarske dgarske self-requested a review July 8, 2026 15:28

@dgarske dgarske left a comment

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.

Please resolve merge conflicts. Thanks!

- remove obsolete merging of LICENSING.rst in description as the
  include is not there anymore
- put setuptools configuration in pyproject.toml
- the setup_requires setting in setup.py is deprecated and is covered
  by pyproject.toml [build-system] - requires
@roberthdevries

Copy link
Copy Markdown
Contributor Author

Rebased on master, conflicts are resolved.

Comment thread setup.py
setup_requires=["cffi>=1.17"],
cffi_modules=["./scripts/build_ffi.py:ffibuilder"],

package_data={"wolfcrypt": ["*.dll", "**/*.pyi", "py.typed"]},

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.

it looks like '.dll' is being dropped from the build. The '.pyi' and 'py.typed' should be fine to remove since I believe they're implicit but a rule needs to be added to pyproject.toml to continue copying '*.dll'.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The include line on line 50 of pyproject.toml specifies the directories to include in the wheel. On Linux it includes the .so the file by default. So my hopes are that on Windows setuptools would also do this for .dll files by default.
Unfortunately I do not have a development environment under Windows available. Could someone at your end try to run uv build --wheel on a Windows system?

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.

That should be doable. I'll get back to you once I've tested it.

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.

4 participants