-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Reintroduce examples.directory rc parameter #1479
Conversation
The main reason is that in Debian we store sample_data in a directory outside the Python modules location. This way we're able to specify that directory in a more appropriate way, also to allow examples to work during package building (in particular for the documentation part). The code introduced is a partial revert of 6c5e961 (with very tiny changes).
It looks like |
Oh you already had the commit link in the original message -- I am apparently blind. |
I think this is ok to merge, but I'm not a debian expert. Is there someone else more familiar with debian that can weigh in? I presume installed the sample_data in the same directory as the matplotlib module is not an acceptable solution? |
It's not acceptable because python 2.x has different modules directory for any minor version: 2.6 and 2.7 uses 2 different dirs, so we will need to duplicate the directory, or symlink it; and then we have the py3k module dir, and we need to handle that too. Debian policy specify to store data files in /usr/share (if binary independent) or /usr/lib/ , that's why the Debian package stores them in /usr/share/matplotlib . |
Thanks. This looks fine. I had not realised that Debian was relying on the behavior when I made the change -- the real purpose of the commit was to remove the network accessing of sample data, which never worked for very long before breaking. In the future, we should coordinate better about release candidates so we can catch these sorts of packaging issues before the final release. Can you rebase against v1.2.x and resubmit the pull request? I think this really belongs on the maintenance branch. |
Hi Michael, I've filed #1491 - let me know if it's ok. |
Resolved by #1491. |
The main reason is that in Debian we store sample_data in a directory outside
the Python modules location. This way we're able to specify that directory in a
more appropriate way, also to allow examples to work during package building (in
particular for the documentation part).
The code introduced is a partial revert of 6c5e961 (with very tiny changes).
See also: #1478