GNS3 Docker Images
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

python.equivs 953B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/sh
  2. # Python package, that just depends on Python3, no Python2 anymore.
  3. #
  4. # Create with docker:
  5. # docker run --rm --tty --volume "$(pwd):/build" debian sh -c "cd; sh /build/python.equivs"
  6. apt-get update
  7. apt-get -y install --no-install-recommends equivs
  8. cat > python.control <<'EOF'
  9. Section: python
  10. Priority: optional
  11. Standards-Version: 3.9.2
  12. Package: python
  13. Version: 3
  14. Maintainer: Bernhard Ehlers <be@example.com>
  15. Depends: python3
  16. Architecture: all
  17. Links: python3 /usr/bin/python
  18. Description: interactive high-level object-oriented language (python3 version)
  19. Python, the high-level, interactive object oriented language,
  20. includes an extensive class library with lots of goodies for
  21. network programming, system administration, sounds and graphics.
  22. .
  23. This package is a dependency package, which depends on Python 3
  24. EOF
  25. equivs-build python.control
  26. if [ -d /build ]; then
  27. chown --reference=/build python*.deb
  28. cp -p python*.deb /build/
  29. fi