Title: Wheel distributables include unnecessary files · Issue #7745 · matplotlib/matplotlib · GitHub
Open Graph Title: Wheel distributables include unnecessary files · Issue #7745 · matplotlib/matplotlib
X Title: Wheel distributables include unnecessary files · Issue #7745 · matplotlib/matplotlib
Description: Context We are using matplotlib, and we are building our own wheel-distributables built for our systems. Basically, we are not only doing this for matplotlib, but for most python dependencies of our services. We are using the devpi-build...
Open Graph Description: Context We are using matplotlib, and we are building our own wheel-distributables built for our systems. Basically, we are not only doing this for matplotlib, but for most python dependencies of ou...
X Description: Context We are using matplotlib, and we are building our own wheel-distributables built for our systems. Basically, we are not only doing this for matplotlib, but for most python dependencies of ou...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/7745
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Wheel distributables include unnecessary files","articleBody":"# Context\r\n\r\nWe are using matplotlib, and we are building our own wheel-distributables built for our systems. Basically, we are not only doing this for matplotlib, but for most python dependencies of our services.\r\nWe are using the devpi-builder script (https://github.com/blue-yonder/devpi-builder) to do this, which essentially wraps `pip wheel PACKAGE` calls.\r\n\r\n# Issue\r\n\r\nThe issue with matplotlib is, that it is set up in a way, that test images end up in the resulting wheels, this leads to wheel sizes of up to 50 MBs, when without these files and directories, wheel sizes would be ~ 6-13 MB.\r\n\r\nNote that on Pypi, matplotlib wheels are smaller, i.e. they don't contain these files and directories.\r\n\r\nI looked around a little and stumbled over https://github.com/MacPython/matplotlib-wheels/blob/master/rm_test_images.py . I.e. We are not the only ones facing this problem and I assume that somewhere in the manylinux wheel build scripts there probably is a similar logic to remove these files. I'd rather have it the other way around: Don't have these files included by default.\r\n\r\n# How it should be\r\n\r\nMatplotlib's default behaviour should be to not include the test images by default. If there are use cases where such files are needed in a wheel, inclusion should only be opt-in.\r\n\r\nSo, `pip wheel matplotlib` shouldn't produce a wheel that contain the large test images.\r\n\r\n# PS\r\n\r\nActually I'd prefer wheel releases to be free of any test-suite related stuff. If I need to run unit tests against a built Python wheel, I can take the test suite from the source distribution (as in http://doc.devpi.net/latest/quickstart-releaseprocess.html#devpi-test-testing-an-uploaded-package) if need be. Anyway, for the scope of this issue, I'd be happy if wheel sizes were reasonably small by default.","author":{"url":"https://github.com/HolgerPeters","@type":"Person","name":"HolgerPeters"},"datePublished":"2017-01-05T10:02:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/7745/matplotlib/issues/7745"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7f5c6469-ab67-02bd-69d4-8ff4a85e5d17 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8DEC:382280:2F78FE6:413882E:6A54A186 |
| html-safe-nonce | 00c059bc840bd71b46e281f255a38ce94f2700283e0d4218196ea78b8585e5c2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4REVDOjM4MjI4MDoyRjc4RkU2OjQxMzg4MkU6NkE1NEExODYiLCJ2aXNpdG9yX2lkIjoiMTAyODgyODIxNDYwMzMyNTgzMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5080f295bf4c786e94e4d5f9a8dfce6a5de47948b293af499300ec154a011e3e |
| hovercard-subject-tag | issue:198917571 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/7745/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4a7e7d6e8084a6fdb9d15d5df20156588d006faf98aaa72e9c966ded73ad151c/matplotlib/matplotlib/issues/7745 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4a7e7d6e8084a6fdb9d15d5df20156588d006faf98aaa72e9c966ded73ad151c/matplotlib/matplotlib/issues/7745 |
| og:image:alt | Context We are using matplotlib, and we are building our own wheel-distributables built for our systems. Basically, we are not only doing this for matplotlib, but for most python dependencies of ou... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | HolgerPeters |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f8cfff6384f62259baea531c7f58bc7040f8dd92 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width