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

Setuptools #402

Merged
merged 3 commits into from
May 2, 2018
Merged

Setuptools #402

merged 3 commits into from
May 2, 2018

Conversation

ocefpaf
Copy link
Contributor

@ocefpaf ocefpaf commented Apr 27, 2018

# Do not merge this before #400 and #401

... and simplify how we deal with the requirements in setup.py.

Copy link
Member

@efiring efiring left a comment

Choose a reason for hiding this comment

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

It looks like this actually replaces #401, doesn't it? Apart from a couple minor comments, it looks fine to me.

setup.py Outdated
from distutils.dist import Distribution
from distutils.util import convert_path
from distutils import ccompiler, sysconfig
from setuptools.dist import Distribution
Copy link
Member

Choose a reason for hiding this comment

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

Duplicated above.

setup.py Outdated
req
for req in content.split("\n")
if req != '' and not req.startswith('#')
]
Copy link
Member

Choose a reason for hiding this comment

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

style quibble: I don't like the closing paren being indented that way. I would probably put the read functionality inside the get_install_requirements function, since it isn't used anywhere else, and then format the return as

    return [req for req in content.split("\n")
                if req and not req.startswith('#')]

@WeatherGod
Copy link
Member

could you rebase this onto master to make it easier to see the remaining differences?

@ocefpaf
Copy link
Contributor Author

ocefpaf commented Apr 28, 2018

This is ready for another round of reviews.

@WeatherGod
Copy link
Member

Is it basically assumed now that people have setuptools installed? I guess it is pretty much safe because matplotlib has been requiring setuptools for awhile now, right?

@ocefpaf
Copy link
Contributor Author

ocefpaf commented Apr 29, 2018

Is it basically assumed now that people have setuptools installed?

Yep. pip is the recommended way to install packages now and pip brings setuptools. Also, pip is now bundle with all basic Python distributions, so it is always expected to be present.

@WeatherGod WeatherGod merged commit decfa95 into matplotlib:master May 2, 2018
@ocefpaf ocefpaf deleted the setuptools branch May 2, 2018 10:52
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.

3 participants