Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #98994

Re: Mapping between python packages and distro packages?

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Laura Creighton <lac@openend.se>
Newsgroups comp.lang.python
Subject Re: Mapping between python packages and distro packages?
Date Wed, 18 Nov 2015 20:30:34 +0100
Lines 22
Message-ID <mailman.422.1447875051.16136.python-list@python.org> (permalink)
References <20151118032903.GA8040@sg1> <85vb90c4fv.fsf@benfinney.id.au> <CAPTjJmotkP4LPy90TBKSvC5b6ugptY4+5wkRxMp1ZvcqK3S=cQ@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset="us-ascii"
X-Trace news.uni-berlin.de AD7CbuqcsAazfnxTC2DjoQ9g7R3s7Ii7hyowYBd8zaqg==
Return-Path <lac@openend.se>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'cc:addr:python-list': 0.09; 'exist.': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'developers,': 0.10; 'python': 0.10; 'package,': 0.13; 'subject:python': 0.14; 'wed,': 0.15; 'cc:addr:lac': 0.16; 'cc:addr:openend.se': 0.16; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'hits.': 0.16; 'message- id:@fido.openend.se': 0.16; 'received:fido': 0.16; 'received:fido.openend.se': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:Mapping': 0.16; 'subject:between': 0.16; 'detect': 0.18; 'first.': 0.18; 'laura': 0.18; 'load': 0.20; '2015': 0.20; 'cc:addr:python.org': 0.20; 'cc:2**1': 0.22; 'are.': 0.22; 'assumes': 0.22; 'recognize': 0.22; 'cc:no real name:2**0': 0.22; 'decide': 0.23; 'install': 0.25; 'chris': 0.26; 'received:se': 0.29; 'code': 0.30; "i'd": 0.31; '"the': 0.32; 'problem': 0.33; 'gets': 0.35; 'false': 0.35; 'nov': 0.35; 'skip:> 10': 0.35; 'but': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'charset:us-ascii': 0.37; 'several': 0.38; 'where': 0.40; 'some': 0.40; 'header:Message-Id:1': 0.61; 'course': 0.62; 'packages,': 0.66; 'course.': 0.67; 'apt-get': 0.84; 'header:In-reply-to:1': 0.84; 'faced': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=openend.se; s=default; t=1447875038; bh=Ve5vwWUxW3KRGUxMR3zapFncDgMEgL4hRArDKQ/FxNE=; h=To:cc:From:Subject:In-reply-to:References:Date:From; b=yu81g8C2vFbeN1TA9xju5Z5ROwS0gQfKFG+dmA99SG+NsxLVyUO9OMEZ2tp5LC6HJ B2ShhDp92916x+QwV6BtpI96AC9gBvRkDJbU3bMaWPn6H0jTJ0m5V+QJedbJx3wWa6 WVg0V7d5qbgmAYf7AnwXHMghfrVgk89uaUJMzyR8=
In-reply-to <CAPTjJmotkP4LPy90TBKSvC5b6ugptY4+5wkRxMp1ZvcqK3S=cQ@mail.gmail.com>
Comments In-reply-to Chris Angelico <rosuav@gmail.com> message dated "Wed, 18 Nov 2015 17:44:51 +1100."
Content-ID <17054.1447875034.1@fido>
X-Greylist Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [82.96.5.2]); Wed, 18 Nov 2015 20:30:38 +0100 (CET)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:98994

Show key headers only | View raw


In a message of Wed, 18 Nov 2015 17:44:51 +1100, Chris Angelico writes:

>I don't know how the program would detect it, but I'd be thinking "the
>one where 'sudo apt-get install PACKAGENAME' gets the same code that
>'pip install THING' gets". In a lot of cases, PACKAGENAME will simply
>be python-THING or python3-THING, eg python3-sqlalchemy,
>python3-scipy, python3-bs4; as a human, that's what I'd try first. But
>having a program recognize this would be hugely beneficial.
>
>ChrisA

The problem is that this may not exist.  Debian developers, when faced
with a python package, may decide to break it up into several pieces,
and make several debian packagages.  If you want the same functionality
you have to load all of the debian packages, which of course involves
finding out what they are.

apt-cache search <PyPi name> works reasonably well, as long as you are
willing to put up with some false hits.  And it assumes you have a debian
system handy, of course.

Laura

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Mapping between python packages and distro packages? Laura Creighton <lac@openend.se> - 2015-11-18 20:30 +0100

csiph-web