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.

@roberthdevries roberthdevries Jul 15, 2026

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.

I tried adding a workflow to the github actions, but it seems to crash in one of the tests. In any case the tests seems to run for a bit, so at least something is being built. It only seems that no .dll is built, but an .exp file. In any case that file is not included in the wheel (it is not using the changes of this patch).

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.

Ahh, so this may be broken already - unless we're misunderstanding how this is supposed to be built. Debugging workflows is a bit of a chore so I'll see if I can get it working locally.

I've got a desktop with Windows that I'll get setup this weekend, we'll see what I find come Monday.

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