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 the setup details to work with pip #38

Merged
merged 3 commits into from
Jul 7, 2021
Merged

Conversation

kprussing
Copy link
Contributor

This updates the setup.cfg and setup.py to work with pip to install the project. It also adds the pyproject.toml necessary for [PEP-517] installation. This also updates the installation instructions to use the VCS version of the pip install command since scons-contrib is not listed on PyPI.

This partially addresses #3.
[PEP-517]: https://www.python.org/dev/peps/pep-0517/

The symlink in the doxygen tool example interferes with installing using
pip because it tries to do a recursive installation.
The more modern configuration for projects is to follow the [PEP-517]
and place most of the details in the pyproject.toml and setup.cfg.  To
preserve pre-517 builds, we retain the setup.py with an empty call to
setup().

[PEP-517]: https://www.python.org/dev/peps/pep-0517
Installation using pip requires SCons 4 or newer.  That means
documentation is necessary.  The other concern is scons-contrib is not
on pypi.org.  Instead, we point users to the VCS version of the command.
.. note:: Installs using pip or setup.py are not presently implemented.
Suggest manually add a tool to ``site_scons/site_tools`` to use.
.. note:: Installs using pip searching pypi.org are not presently
implemented. For alternative options, see the installation
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure why you removed the note that site_scons/site_tools was a reasonable install location. I'll re-add post merge.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was thinking that pointing to the Installation section was sufficient since those updates should layout all the options.

Copy link
Contributor

Choose a reason for hiding this comment

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

I figure always easier to provide info at point of use.
A great deal of users never read the docs, or enough of the docs for what they're trying to do.

@bdbaddog bdbaddog merged commit af4d02a into SCons:master Jul 7, 2021
This pull request was closed.
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