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

Recommendation to install packages for various OS #6546

Closed
AbdealiLoKo opened this issue Jun 7, 2016 · 7 comments
Closed

Recommendation to install packages for various OS #6546

AbdealiLoKo opened this issue Jun 7, 2016 · 7 comments
Milestone

Comments

@AbdealiLoKo
Copy link
Contributor

AbdealiLoKo commented Jun 7, 2016

In setup.py L216 there is an error message which says which packages were not found while installing.
Would it be possible to suggest methods of installing these packages in some common Operating Systems ? Something like:

# A list of apt, brew, etc packages for various OS
# Example using freetype
pkg = 'freetype'
apt_pkg = 'libfreetype6-dev'
brew_pkg  'freetype'
win_pkg_url = 'http://gnuwin32.sourceforge.net/packages/freetype.htm'

if platform.system() == 'win32':
    print('Please check {0} for instructions to install {1}'
           .format(win_pkg_url, pkg))
elif platform.system() == 'darwin':
    print('Try installing {0} with `brew install {1}`'
          .format(pkg, brew_pkg))
elif platform.system() == 'Linux':
    distname, _, __ = platform.linux_distribution()
    if distname.lower() in ('ubuntu', 'debian'):
        print('Try installing {0} with `apt-get install {1}`'
              .format(pkg, apt_pkg))

This would be needed only for the required packages for which local copies are not provided.

A user found the error message - https://justpaste.it/v0if which was a bit confusing as it didn't suggest what to do. It'd be nice to give more helpful messages for people just starting python:

  • Matplotlib version - 2.0.0b1
  • Python version - 2.7.6
  • Platform - Linux, Kubuntu 14.04.1
  • Installation source - Using pip
@rathann
Copy link

rathann commented Jun 10, 2016

Could you also mention Fedora (dnf install) and RHEL/CentOS/Scientific Linux (yum install)? I can provide the exact package names if necessary.

@tacaswell
Copy link
Member

PRs to add this documentation is welcome.

@AbdealiLoKo
Copy link
Contributor Author

Hey, a review on the PR I submitted would be helpful to know how I should edit and make it better so this can get merged before next point release

@WeatherGod
Copy link
Member

Which PR is it? I don't see it at a quick glance.

On Wed, Jun 22, 2016 at 12:25 PM, AbdealiJK notifications@github.com
wrote:

Hey, a review on the PR I submitted would be helpful to know how I should
edit and make it better so this can get merged before next point release


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#6546 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AARy-LaeIw7ZH9gfgl5t5-y8sQevPyKNks5qOWH8gaJpZM4IviAf
.

@AbdealiLoKo
Copy link
Contributor Author

The PR is at #6575

@tacaswell
Copy link
Member

@AbdealiJK Sorry we can be slow to get to reviews

@AbdealiLoKo
Copy link
Contributor Author

@tacaswell No problem :) I completely understand this is opensource and volunteer time. Just wanted to give a polite reminder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants