diff options
Diffstat (limited to 'subprojects/shared-modules/python2.7/python-2.7.json')
-rw-r--r-- | subprojects/shared-modules/python2.7/python-2.7.json | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/subprojects/shared-modules/python2.7/python-2.7.json b/subprojects/shared-modules/python2.7/python-2.7.json new file mode 100644 index 00000000..afdef902 --- /dev/null +++ b/subprojects/shared-modules/python2.7/python-2.7.json @@ -0,0 +1,52 @@ +{ + "name": "python-2.7", + "sources": [ + { + "type": "archive", + "url": "https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tar.xz", + "sha256": "b62c0e7937551d0cc02b8fd5cb0f544f9405bafc9a54d3808ed4594812edef43" + } + ], + "config-opts": [ + "--enable-shared", + "--with-ensurepip=yes", + "--with-system-expat", + "--with-system-ffi", + "--enable-loadable-sqlite-extensions", + "--with-dbmliborder=gdbm", + "--enable-unicode=ucs4" + ], + "post-install": [ + /* Theres seem to be a permissions missmatch that causes the debug stripping to fail */ + "chmod 644 $FLATPAK_DEST/lib/libpython2.7.so.1.0" + ], + "cleanup": [ + "/bin/2to3*", + "/bin/easy_install*", + "/bin/idle*", + "/bin/pydoc*", + "/bin/python*-config", + "/bin/pyvenv*", + "/include", + "/lib/pkgconfig", + "/lib/python*/config", + "/share", + + /* Test scripts */ + "/lib/python*/test", + "/lib/python*/*/test", + "/lib/python*/*/tests", + "/lib/python*/lib-tk/test", + "/lib/python*/lib-dynload/_*_test.*.so", + "/lib/python*/lib-dynload/_test*.*.so", + + /* Unused modules */ + "/lib/python*/idlelib", + "/lib/python*/tkinter*", + "/lib/python*/turtle*", + "/lib/python*/lib2to3*", + + /* Static library */ + "/lib/python2.7/config/libpython2.7.a" + ] +} |