Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: 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; 'tutorial': 0.03; 'tree': 0.05; 'cache': 0.07; 'paths': 0.07; 'pypi': 0.07; 'utf-8': 0.07; 'setup.py': 0.09; 'subject:into': 0.09; 'url:github': 0.09; 'valueerror:': 0.09; 'subject:How': 0.10; 'cc:addr:python-list': 0.11; 'python': 0.11; 'suggest': 0.14; 'clone': 0.16; 'roy': 0.16; 'sdist': 0.16; 'subject:install': 0.16; 'tarball': 0.16; 'usable': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'feb': 0.22; 'issue.': 0.22; 'cc:addr:python.org': 0.22; 'install': 0.23; 'this?': 0.23; 'directory.': 0.24; '(or': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; '15,': 0.26; 'somewhere': 0.26; 'header:In- Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'hiring': 0.29; 'absolute': 0.30; 'relative': 0.30; 'waste': 0.30; 'message- id:@mail.gmail.com': 0.30; 'directory,': 0.31; 'figure': 0.32; 'run': 0.32; 'fri,': 0.33; 'sense': 0.34; 'could': 0.34; "can't": 0.35; 'something': 0.35; 'received:google.com': 0.35; 'there': 0.35; '14,': 0.36; 'explains': 0.36; 'ryan': 0.36; 'example,': 0.37; 'two': 0.37; 'project': 0.37; 'pm,': 0.38; 'subject:can': 0.39; 'even': 0.60; 'skip:a 30': 0.61; 'entire': 0.61; 'from:charset:utf-8': 0.61; 'our': 0.64; 'skip:\xe2 10': 0.65; 'smith': 0.68; 'caused': 0.69; '8bit%:43': 0.74; 'article': 0.77; '99.9%': 0.84; 'actually,': 0.84; 'url:tk': 0.95 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:to :cc:content-type:content-transfer-encoding; bh=dQYDcbAykDZ7O6eyiuA9c3dOQQbDA1zK3ExpNSEIDjA=; b=JmO73wHw8t/7P56ZhNcym3hsJYDW/j/yh0xWcvUaPDpuDUuc5TaTJAvz7sQYfK53EJ SIyLmEmJaI4eVDdkRSBBzDO+qQ2Teg3VWjz7+xsd2rLXcgp30PAh22vUI9VSjTvw5Jyt /UoCO2TKaEmg5jmyZWW9S75lGTXBzwDI4SyAoOpUlAckROyVPKboQ1xQpZbN1/T/rUJE u7xdNcbBonXWwOTUoxFgub0d1aUlo2F2fXrpeaAVgkiUReP6w+AOGhsrTF+QjNmAsiuj W4tChlHSxNzUKylLPFZkJzluY8YhmnsjOKgabckKp3t56kMx50ZvTcEATkHohUXzcVPM GMAg== MIME-Version: 1.0 X-Received: by 10.52.171.39 with SMTP id ar7mr7955865vdc.5.1392473343856; Sat, 15 Feb 2014 06:09:03 -0800 (PST) In-Reply-To: References: Date: Sat, 15 Feb 2014 15:09:03 +0100 Subject: Re: How to turn a package into something pip can install From: =?UTF-8?B?Q2hyaXMg4oCcS3dwb2xza2HigJ0gV2Fycmljaw==?= To: Roy Smith Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 34 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1392473352 news.xs4all.nl 2871 [2001:888:2000:d::a6]:44410 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:66438 On Sat, Feb 15, 2014 at 3:26 AM, Roy Smith wrote: > In article , > Ryan Gonzalez wrote: > >> python setup.py sdist > > OK, I run that and I get a metar-1.4.0.tar.gz under dist. If I move > that tarfile to my packages directory, and run pip, I get: > > $ pip install --no-index --quiet --find-links packages metar=3D=3D1.4.0 [snip] > ValueError: unknown url type: packages The path to your cache directory is incorrect. I suggest using absolute paths (eg. /home/user/packages) instead of relative paths, which is likely what caused this issue. On Fri, Feb 14, 2014 at 7:47 PM, Roy Smith wrote: > What I can't figure out is what I need to do to go from a clone of the > github repo to a tarball I can drop into our packages directory. Is > there some tutorial somewhere that explains this? Actually, you could even tar up that entire repo (or even get a nice ready tarball from GItHub) and you will get something usable with pip. For example, we in the Nikola project (https://github.com/getnikola/nikola) upload the GitHub tarballs to PyPI because we ship 99.9% of our tree anyways and hiring `setup.py sdist` would be a waste of time (and would produce two almost-identical-but-not-quite tarballs). --=20 Chris =E2=80=9CKwpolska=E2=80=9D Warrick PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense