Skip to content
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

python, python3: ship packages with byte-codes and derive python source packages #4130

Merged
merged 11 commits into from
Mar 16, 2017

Commits on Mar 9, 2017

  1. python,python3: fix goof with multiline command break

    Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
    commodo committed Mar 9, 2017
    Configuration menu
    Copy the full SHA
    17da988 View commit details
    Browse the repository at this point in the history
  2. python: move filespec shell code into file

    Cleanup.
    And preparation for adding a bit more functionality.
    
    Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
    commodo committed Mar 9, 2017
    Configuration menu
    Copy the full SHA
    06c91a7 View commit details
    Browse the repository at this point in the history
  3. python3: move filespec shell code into file

    Same as for python.
    
    Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
    commodo committed Mar 9, 2017
    Configuration menu
    Copy the full SHA
    5d502e8 View commit details
    Browse the repository at this point in the history
  4. python,python3: move PyPackage install rules in the beggining of the …

    …Package install rules
    
    So that we can process Python sources installed
    by those rules, if we need to.
    
    Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
    commodo committed Mar 9, 2017
    Configuration menu
    Copy the full SHA
    df0d0bc View commit details
    Browse the repository at this point in the history
  5. python: fix python-dev clash with python-base

    Both want to install libpython.so.
    python-dev should install libpython.a
    
    Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
    commodo committed Mar 9, 2017
    Configuration menu
    Copy the full SHA
    6c4dcf4 View commit details
    Browse the repository at this point in the history
  6. python3: make sure $(1)/usr/lib path exists for python3-dev package

    Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
    commodo committed Mar 9, 2017
    Configuration menu
    Copy the full SHA
    a85b0b6 View commit details
    Browse the repository at this point in the history
  7. python,python3: drop tests from all core packages

    Well, this slipped by for some time.
    This should make the Python core packages even more lighter.
    
    Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
    commodo committed Mar 9, 2017
    Configuration menu
    Copy the full SHA
    92073b0 View commit details
    Browse the repository at this point in the history
  8. python,python3: drop remove .pyc & .pyo files

    We'll control in the install phase what we ship [byte-codes or source files]
    
    Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
    commodo committed Mar 9, 2017
    Configuration menu
    Copy the full SHA
    05f8d6e View commit details
    Browse the repository at this point in the history
  9. python: split source packages away from compiled packages

    Well, they're not yet compiled, but in the next commit
    they should be.
    
    People have been complaining [citation needed] to me
    via email or via Github that Python's performance is crap
    because it packages sources directly and they're not compiled.
    And Python has to compile the sources on each run, and
    on-the-fly.
    
    Allowing compilation caching is also a no-no, because
    I'll get complaints that the flash storage fills up
    whenever a Python app runs.
    
    So, to give the user a choice, the new de-facto packaging
    for Python packages will be:
    * ship compiled + [ preferably ] optimized files
    * package sources separately
    
    The problem is that this doubles the number of packages
    in LEDE/OpenWrt, but build-times should not suffer a big
    hit, since the compilation is done once, and the
    install phase should not be too intensive.
    
    Oh, and people don't need ship source packages if
    they don't want to.
    To do that, a packager needs to just call
    `$(eval $(call BuildPackage,python-<package>-src))`
    
    The `python-` prefix is important.
    
    Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
    commodo committed Mar 9, 2017
    Configuration menu
    Copy the full SHA
    20685f5 View commit details
    Browse the repository at this point in the history
  10. python3: split source packages away from compiled packages

    Same as for python.
    
    Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
    commodo committed Mar 9, 2017
    Configuration menu
    Copy the full SHA
    ae350d9 View commit details
    Browse the repository at this point in the history
  11. python,python3: bump PKG_RELEASEs

    Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
    commodo committed Mar 9, 2017
    Configuration menu
    Copy the full SHA
    9f7235e View commit details
    Browse the repository at this point in the history