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


Groups > comp.lang.python > #66527

Re: How to turn a package into something pip can install

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <kwpolska@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'heavily': 0.04; 'cache': 0.07; 'paths': 0.07; 'utf-8': 0.07; 'subject:into': 0.09; 'valueerror:': 0.09; 'works.': 0.09; 'subject:How': 0.10; 'cc:addr :python-list': 0.11; 'python': 0.11; 'suggest': 0.14; 'accepts': 0.16; 'fine.': 0.16; 'pip?': 0.16; 'roy': 0.16; 'subject:install': 0.16; 'url.': 0.16; 'url:html)': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'feb': 0.22; 'issue.': 0.22; 'cc:addr:python.org': 0.22; 'install': 0.23; 'either.': 0.24; 'versions': 0.24; 'looks': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; "i've": 0.25; '15,': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; "doesn't": 0.30; 'absolute': 0.30; 'newer': 0.30; 'relative': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'url:mailman': 0.30; 'url:python': 0.33; 'sense': 0.34; 'maybe': 0.34; 'problem.': 0.35; 'something': 0.35; 'no,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'ubuntu': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'being': 0.38; 'on-line': 0.38; 'pm,': 0.38; 'subject:can': 0.39; 'sure': 0.39; 'changed': 0.39; 'url:mail': 0.40; 'from:charset:utf-8': 0.61; 'such': 0.63; 'skip:\xe2 10': 0.65; 'smith': 0.68; 'caused': 0.69; '8bit%:43': 0.74; 'article': 0.77; 'it\xe2\x80\x99s': 0.84; 'url:reference': 0.84; 'url:latest': 0.91; '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=qo2F6j/gcFUYNrJCv1ISrJ+0cStAhuZR/mKaEB+KAoU=; b=Xh3nNHYazrlSfFj7Dl2T/gy3rlD3YrB2bmILwFRrrKPDhB2tSW6u3cIyEYaYI8+wf8 nVgsZCOjEGWTtMR3vypoiE9lKk+ryaTqVNujHY9Bw007bam2lSeY+tNMfYaR9FZYM6Yu v+1FZvM/1Wsh+xhViKm2plykg8FcErNo6/GMdcxkebP1ZhNaIAb1ZU5WrngX6lqS5PP1 8iZd1bPgd1gveZa4sp7e/lxjllPnruizt9KAwY8c9h6CmnYAge46O6CBFTuSdnS3wjBF iMlM/tBzeWsTpRG2rSutp3GIuNZR0TqKlWzKtT+wd1hO2f+y2WKTnvDvJBymE9mpjC4E JXHg==
MIME-Version 1.0
X-Received by 10.221.30.14 with SMTP id sa14mr3854vcb.44.1392553092787; Sun, 16 Feb 2014 04:18:12 -0800 (PST)
In-Reply-To <roy-E7A61F.17353715022014@news.panix.com>
References <roy-C807D1.20471014022014@news.panix.com> <mailman.6949.1392429645.18130.python-list@python.org> <roy-E13405.21260314022014@news.panix.com> <mailman.6998.1392473352.18130.python-list@python.org> <roy-8299B9.17014115022014@news.panix.com> <roy-E7A61F.17353715022014@news.panix.com>
Date Sun, 16 Feb 2014 13:18:12 +0100
Subject Re: How to turn a package into something pip can install
From Chris “Kwpolska” Warrick <kwpolska@gmail.com>
To Roy Smith <roy@panix.com>
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 <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>
Newsgroups comp.lang.python
Message-ID <mailman.7050.1392553101.18130.python-list@python.org> (permalink)
Lines 34
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1392553101 news.xs4all.nl 2939 [2001:888:2000:d::a6]:59384
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:66527

Show key headers only | View raw


On Sat, Feb 15, 2014 at 11:35 PM, Roy Smith <roy@panix.com> wrote:
> In article <roy-8299B9.17014115022014@news.panix.com>,
>  Roy Smith <roy@panix.com> wrote:
>
>> > > $ pip install --no-index --quiet --find-links packages metar==1.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.
>>
>> No, that's not it.  It doesn't work with an absolute path either.
>
> OK, I figured this out.  The on-line docs
> (http://www.pip-installer.org/en/latest/reference/pip_wheel.html) say
> you can give --find-links a path, but it looks like it insists on it
> being a valid URL.  If I prepend "file:" to the absolute path, it works.
>
> Maybe this is something which has changed in newer versions of pip?
> I've got 1.1 (and python 2.7.3).  I'm pretty sure both of these are what
> came with Ubuntu Precise.
> --
> https://mail.python.org/mailman/listinfo/python-list

It’s heavily outdated, and that IS the cause of your problem.  pip 1.5
accepts such paths just fine.  Please upgrade your pip.

-- 
Chris “Kwpolska” Warrick <http://kwpolska.tk>
PGP: 5EAAEA16
stop html mail | always bottom-post | only UTF-8 makes sense

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


Thread

How to turn a package into something pip can install Roy Smith <roy@panix.com> - 2014-02-14 20:47 -0500
  Re: How to turn a package into something pip can install Ryan Gonzalez <rymg19@gmail.com> - 2014-02-14 20:00 -0600
    Re: How to turn a package into something pip can install Roy Smith <roy@panix.com> - 2014-02-14 21:26 -0500
      Re: How to turn a package into something pip can install Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2014-02-15 15:09 +0100
        Re: How to turn a package into something pip can install Roy Smith <roy@panix.com> - 2014-02-15 17:01 -0500
          Re: How to turn a package into something pip can install Roy Smith <roy@panix.com> - 2014-02-15 17:35 -0500
            Re: How to turn a package into something pip can install Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2014-02-16 13:18 +0100
            Re: How to turn a package into something pip can install Chris Angelico <rosuav@gmail.com> - 2014-02-17 00:23 +1100
              Re: How to turn a package into something pip can install Roy Smith <roy@panix.com> - 2014-02-16 09:25 -0500
                Re: How to turn a package into something pip can install Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-02-16 15:06 +0000
                Re: How to turn a package into something pip can install MRAB <python@mrabarnett.plus.com> - 2014-02-16 15:20 +0000
                Re: How to turn a package into something pip can install Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-02-16 15:47 +0000

csiph-web