Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Mapping between python packages and distro packages? Date: Wed, 18 Nov 2015 17:44:51 +1100 Lines: 22 Message-ID: References: <20151118032903.GA8040@sg1> <85vb90c4fv.fsf@benfinney.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de HJQuwjpks2ToAqxN3mWu6wCgcv07QcB3z7jggae2dy5A== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.038 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'pypi': 0.07; 'cc:addr :python-list': 0.09; 'subject:python': 0.14; 'wed,': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:Mapping': 0.16; 'subject:between': 0.16; 'wrote:': 0.16; 'detect': 0.18; 'first.': 0.18; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'recognize': 0.22; 'header:In-Reply- To:1': 0.24; 'install': 0.25; 'message-id:@mail.gmail.com': 0.27; 'received:209.85.213.174': 0.29; 'code': 0.30; "i'd": 0.31; '"the': 0.32; 'gets': 0.35; 'received:google.com': 0.35; 'nov': 0.35; 'something': 0.35; 'but': 0.36; 'received:209.85': 0.36; 'subject:?': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:209.85.213': 0.37; 'received:209': 0.38; 'names': 0.38; 'mean': 0.38; 'where': 0.40; 'skip:\xe2 10': 0.70; '8bit%:27': 0.72; 'apt-get': 0.84; 'chrisa': 0.84; 'to:none': 0.91; '8bit%:33': 0.91; '8bit%:18': 0.93; '\xe2\x80\x9cthe': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type:content-transfer-encoding; bh=5HWgSNDnD7/n359c61VmKNsxWqdK2gshflDPqpXFKNQ=; b=cnWHRz5LA1VByKJqPPi64f4jySegxU4eR3eIsxD1XsxerSI+gY9CmEEvzXVrJVI7O8 yQrX/grbKNPoGJMUsvbpJoiR43VaLaNf9Hbo+rWA87UWsBiX2TGZFHWYnYCBKkTjv98R PM6xpaZuBYbp2138Jan5uDmgm+gWiZtqKtu54BFPyc2C8CWLYrfuwS8zROL/PbVB5CeZ ZQbiWQkEmQpa81KCFcdd5p0IG2felPTZ953nZtpw/VIndx+Bu3lo8ZoLKJyFmzCLpx5y z44l81hlBgqODAXnxTVgCcFYIKpwuwU5iZqCGE8M4PVdgXvQtcepW3LDk/9jxR+Vl1YI mRKw== X-Received: by 10.50.93.72 with SMTP id cs8mr1533873igb.13.1447829091662; Tue, 17 Nov 2015 22:44:51 -0800 (PST) In-Reply-To: <85vb90c4fv.fsf@benfinney.id.au> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:98947 On Wed, Nov 18, 2015 at 3:33 PM, Ben Finney wr= ote: > What would count as =E2=80=9Cthe right package=E2=80=9D? > > Do you mean =E2=80=9Cthe package that has that PyPI distribution URL in i= ts > =E2=80=98debian/watch=E2=80=99 configuration=E2=80=9D? > > Do you mean =E2=80=9Cthe package that names that PyPI distribution in its > =E2=80=98debian/copyright=E2=80=99 =E2=80=9CSource=E2=80=9D field=E2=80= =9D? > > Or something else? 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