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

Build using setuptools natively #2

Merged
merged 3 commits into from
Jun 20, 2020
Merged

Conversation

EpicWink
Copy link
Collaborator

@EpicWink EpicWink commented Jun 20, 2020

Now simply install with pip install ..

This will allow for simple wheel building with python setup.py bdist_wheel or pip wheel . --no-deps. This is required for PyPI distribution.

Note that the bundled (Git module) PyBind11 isn't used: rather, pip gets is during the build process. This means people with only the source-distribution (created by python setup.py sdist) can install it without any pre-requisites.

Signed-off-by: Laurie O <laurie_opperman@hotmail.com>
@EpicWink EpicWink mentioned this pull request Jun 20, 2020
@bobfang1992
Copy link
Owner

First, I want to thank you for contributing! This is what I need! As you can see this is my first open-source project and this is exactly where I needed help as I am not an expert on Python packaging etc.

Second, for this commit, can we include a change to delete the local pybind11 subrepo then since it seems that it will be no longer needed.

Thanks!

@EpicWink
Copy link
Collaborator Author

EpicWink commented Jun 20, 2020

Will do. I've enabled maintainer edits, so you're able to make changes and push them to my branch

However, removing PyBind11 will break the cmake test build. I think this is fine as we only need to test the Python code, which is done via PyTest anyway

@bobfang1992
Copy link
Owner

Thanks a lot! @EpicWink

It's used in the build requirements during install

Signed-off-by: Laurie O <laurie_opperman@hotmail.com>
@bobfang1992 bobfang1992 self-requested a review June 20, 2020 08:06
@bobfang1992
Copy link
Owner

Hi sorry, given we have #4 coming let's just keep the pybind11 submodule for now and I will merge this.

@bobfang1992 bobfang1992 merged commit 8ad8abe into bobfang1992:master Jun 20, 2020
@EpicWink EpicWink deleted the gcc-only branch June 20, 2020 08:59
chaitan94 added a commit to chaitan94/pytomlpp that referenced this pull request Jun 20, 2020
bobfang1992 pushed a commit that referenced this pull request Jun 20, 2020
chaitan94 added a commit to chaitan94/pytomlpp that referenced this pull request Jun 20, 2020
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.

None yet

2 participants