Skip to content

Remove unnecessary files in kolibri/dist#5

Merged
dylanmccall merged 2 commits into
masterfrom
cleanup-unnecessary-kolibri-files
Aug 14, 2020
Merged

Remove unnecessary files in kolibri/dist#5
dylanmccall merged 2 commits into
masterfrom
cleanup-unnecessary-kolibri-files

Conversation

@dylanmccall

@dylanmccall dylanmccall commented Jun 2, 2020

Copy link
Copy Markdown
Collaborator

This change removes unused compiled c extensions in kolibri/dist/cext,
as well as standalone test suites over 100 KB.

flathub#6

This change removes unused compiled c extensions in kolibri/dist/cext,
as well as standalone test suites over 100 KB.
@dylanmccall

Copy link
Copy Markdown
Collaborator Author

I created a separate PR, #6, in which I move bundled Python locales to /app/share/locale. This reduces the installed size further, but it might break things.

@dylanmccall
dylanmccall force-pushed the cleanup-unnecessary-kolibri-files branch from 37abf52 to 6912538 Compare June 9, 2020 18:59
dylanmccall pushed a commit that referenced this pull request Jun 30, 2020
Update kolibri-installer-gnome
Comment on lines +113 to +124
/app/lib/python3.7/site-packages/kolibri/dist/django/contrib/flatpages/locale
/app/lib/python3.7/site-packages/kolibri/dist/django/contrib/admindocs/locale
/app/lib/python3.7/site-packages/kolibri/dist/django/contrib/sites/locale
/app/lib/python3.7/site-packages/kolibri/dist/django/contrib/sessions/locale
/app/lib/python3.7/site-packages/kolibri/dist/django/contrib/gis/locale
/app/lib/python3.7/site-packages/kolibri/dist/django/contrib/auth/locale
/app/lib/python3.7/site-packages/kolibri/dist/django/contrib/contenttypes/locale
/app/lib/python3.7/site-packages/kolibri/dist/django/contrib/postgres/locale
/app/lib/python3.7/site-packages/kolibri/dist/django/contrib/redirects/locale
/app/lib/python3.7/site-packages/kolibri/dist/django/contrib/humanize/locale
/app/lib/python3.7/site-packages/kolibri/dist/django/contrib/admin/locale
/app/lib/python3.7/site-packages/kolibri/dist/django/conf/locale

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Maybe you can use wildcards here to reduce the maintenance of this list? Something like:

/app/lib/python3.7/site-packages/kolibri/dist/django/contrib/*/locale

Or even pass the recursive pattern "**" and use glob.glob(pathname, recursive=True) in the cleanup script?

@dylanmccall
dylanmccall merged commit 5a7e01b into master Aug 14, 2020
@wjt
wjt deleted the cleanup-unnecessary-kolibri-files branch May 31, 2022 09:25
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