8000 Skip minor version on apt build dep by romuald · Pull Request #647 · python/devguide · GitHub
[go: up one dir, main page]

Skip to content

Skip minor version on apt build dep #647

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

Closed
wants to merge 1 commit into from
Closed

Conversation

romuald
Copy link
@romuald romuald commented Dec 10, 2020

The current Debian (buster) seems to allow users to use apt-get build-dep python3 to install the build dependencies (the 3.6 version is also out of date)

The current Debian (buster) seems to allow users to use
`apt-get build-dep python3` to install the build dependencies
(the 3.6 version is also out of date)
@CAM-Gerlach
Copy link
Member

When I try this on my Raspbian 10 (Buster) system, I get very different results when running sudo apt build-dep python3 vs python3.7, the latest version availble. It seems to assume I mean the python3-defaults package, which comes with a much smaller (sub)set of build dependencies than the actual latest Python version.

Command output on a fairly clean RPi 4 with Raspbian 10 (Buster) installed:

pi@mjolnir2:~ $ sudo apt build-dep python3
Reading package lists... Done
Picking 'python3-defaults' as source package instead of 'python3'
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  autoconf automake autopoint autotools-dev debhelper dh-autoreconf dh-strip-nondeterminism docbook-xml docbook-xsl dwz gettext
  intltool-debian libarchive-zip-perl libdebhelper-perl libfile-stripnondeterminism-perl libgc1c2 libsigsegv2 libtool m4 po-debconf
  sgml-data w3m xsltproc
0 upgraded, 23 newly installed, 0 to remove and 250 not upgraded.
Need to get 8,101 kB of archives.
After this operation, 37.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
pi@mjolnir2:~ $ sudo apt build-dep python3.7
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  autoconf automake autopoint autotools-dev blt-dev debhelper dh-autoreconf dh-strip-nondeterminism diffstat dwz gettext
  intltool-debian libarchive-zip-perl libbluetooth-dev libbz2-dev libdb-dev libdb5.3-dev libdebhelper-perl libffi-dev
  libfile-stripnondeterminism-perl libfontconfig1-dev libgdbm-dev libice-dev liblzma-dev libmpdec-dev libncurses-dev
  libncursesw5-dev libpthread-stubs0-dev libreadline-dev libsigsegv2 libsm-dev libsqlite3-dev libssl-dev libtext-unidecode-perl
  libtool libx11-dev libxau-dev libxcb1-dev libxdmcp-dev libxext-dev libxft-dev libxml-libxml-perl libxml-namespacesupport-perl
  libxml-sax-base-perl libxml-sax-perl libxrender-dev libxss-dev libxt-dev locales-all m4 po-debconf python-babel-localedata
  python3-alabaster python3-babel python3-imagesize python3-packaging python3-pyparsing python3-sphinx python3-tz quilt sharutils
  sphinx-common tcl tcl-dev tcl8.6 tcl8.6-dev tex-common texinfo time tk tk-dev tk8.6 tk8.6-dev uuid-dev x11proto-core-dev
  x11proto-dev x11proto-scrnsaver-dev x11proto-xext-dev xorg-sgml-doctools xtrans-dev xvfb
The following packages will be upgraded:
  libbluetooth3 libsqlite3-0 libssl1.1 libx11-6 xserver-common
5 upgraded, 81 newly installed, 0 to remove and 245 not upgraded.
Need to get 41.6 MB of archives.
After this operation, 324 MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
pi@mjolnir2:~ $

Also, FWIW, the commands should presumably be updated to be sudo apt <...>; apt is the modern, higher-level way for humans to invoke the APT package manager and should be preferred to the lower-level backend apt-get for interactive use, as it supports the same basic commands/API but with much nicer output and other helpful features, while the latter is intended for scripts and programmatic output parsing. See here for more details. I can submit a PR on that.

@ezio-melotti
Copy link
Member

This has been fixed in #673, and the minor version has been removed, so I'm going to close this.

@CAM-Gerlach, if you think this should be reverted or perhaps a note be added about Raspbian, you can open a new issue/PR. Same goes for replacing apt-get with apt (currently the docs still use apt-get).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0