Skip to content

Commit

Permalink
Python: don't include _sysconfigdata.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lrusak committed Mar 15, 2016
1 parent 7067cf2 commit 70ee30e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/lang/Python/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ post_makeinstall_target() {
python -Wi -t -B ../Lib/compileall.py $INSTALL/usr/lib/python*/ -f
rm -rf `find $INSTALL/usr/lib/python*/ -name "*.py"`

rm -rf $INSTALL/usr/lib/python*/_sysconfigdata.pyo

This comment has been minimized.

Copy link
@MilhouseVH

MilhouseVH Mar 16, 2016

Contributor

Did you mean to exclude this? When booting we get the following err:

Mar 15 21:49:37 LibreELEC systemd[1]: Started Setup User config dir.
Mar 15 21:49:37 LibreELEC kernel: hid-generic 0003:05A4:9881.0002: input,hidraw1: USB HID v1.10 Mouse [HID 05a4:9881] on usb-3f980000.usb-1.4/input1
Mar 15 21:49:37 LibreELEC add-entropy[219]: Traceback (most recent call last):
Mar 15 21:49:37 LibreELEC add-entropy[219]:   File "/home/neil/projects/LibreELEC.tv/build.LibreELEC-RPi2.arm-8.0-devel/Python-2.7.11/.install_pkg/usr/lib/python2.7/site.py", line 548, in <module>
Mar 15 21:49:37 LibreELEC add-entropy[219]:   File "/home/neil/projects/LibreELEC.tv/build.LibreELEC-RPi2.arm-8.0-devel/Python-2.7.11/.install_pkg/usr/lib/python2.7/site.py", line 530, in main
Mar 15 21:49:37 LibreELEC add-entropy[219]:   File "/home/neil/projects/LibreELEC.tv/build.LibreELEC-RPi2.arm-8.0-devel/Python-2.7.11/.install_pkg/usr/lib/python2.7/site.py", line 266, in addusersitepackages
Mar 15 21:49:37 LibreELEC add-entropy[219]:   File "/home/neil/projects/LibreELEC.tv/build.LibreELEC-RPi2.arm-8.0-devel/Python-2.7.11/.install_pkg/usr/lib/python2.7/site.py", line 241, in getusersitepackages
Mar 15 21:49:37 LibreELEC add-entropy[219]:   File "/home/neil/projects/LibreELEC.tv/build.LibreELEC-RPi2.arm-8.0-devel/Python-2.7.11/.install_pkg/usr/lib/python2.7/site.py", line 231, in getuserbase
Mar 15 21:49:37 LibreELEC add-entropy[219]:   File "/home/neil/projects/LibreELEC.tv/build.LibreELEC-RPi2.arm-8.0-devel/Python-2.7.11/.install_pkg/usr/lib/python2.7/sysconfig.py", line 520, in get_config_var
Mar 15 21:49:37 LibreELEC add-entropy[219]:   File "/home/neil/projects/LibreELEC.tv/build.LibreELEC-RPi2.arm-8.0-devel/Python-2.7.11/.install_pkg/usr/lib/python2.7/sysconfig.py", line 472, in get_config_vars
Mar 15 21:49:37 LibreELEC add-entropy[219]:   File "/home/neil/projects/LibreELEC.tv/build.LibreELEC-RPi2.arm-8.0-devel/Python-2.7.11/.install_pkg/usr/lib/python2.7/sysconfig.py", line 356, in _init_posix
Mar 15 21:49:37 LibreELEC add-entropy[219]: ImportError: No module named _sysconfigdata
Mar 15 21:49:37 LibreELEC systemd[1]: add-entropy.service: Main process exited, code=exited, status=1/FAILURE
Mar 15 21:49:37 LibreELEC systemd[1]: Failed to start Add random entropy from file.
Mar 15 21:49:37 LibreELEC systemd[1]: add-entropy.service: Unit entered failed state.
Mar 15 21:49:37 LibreELEC systemd[1]: add-entropy.service: Failed with result 'exit-code'.
rm -rf $INSTALL/usr/lib/python*/config
rm -rf $INSTALL/usr/bin/2to3
rm -rf $INSTALL/usr/bin/idle
Expand Down

0 comments on commit 70ee30e

Please sign in to comment.