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


Groups > comp.lang.python > #63943

Re: setup.py issue - some files are included as intended, but one is not

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <drsalists@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:not': 0.03; 'failing': 0.07; 'tries': 0.07; 'dan': 0.09; 'setup.py': 0.09; 'skip:/ 10': 0.09; 'subject:files': 0.09; 'jan': 0.12; '"python': 0.16; 'anyone?': 0.16; 'reason.': 0.16; 'responses.': 0.16; 'sdist': 0.16; 'skip:/ 70': 0.16; 'subject:included': 0.16; 'subject:issue': 0.16; 'sudo': 0.16; 'to:name:python list': 0.16; 'url:py': 0.16; 'url:svn': 0.16; 'variations': 0.16; 'extensions': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'module': 0.19; 'install': 0.23; "i've": 0.25; 'least': 0.26; '(for': 0.26; 'header:In-Reply- To:1': 0.27; 'installed': 0.27; 'tried': 0.27; 'errors': 0.30; 'message-id:@mail.gmail.com': 0.30; 'included': 0.31; 'code': 0.31; 'getting': 0.31; 'fine,': 0.31; 'subject:some': 0.31; 'file': 0.32; 'probably': 0.32; 'thanks!': 0.32; 'running': 0.33; 'at:': 0.34; 'skip:d 20': 0.34; 'problem': 0.35; "can't": 0.35; 'form.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'installing': 0.36; 'much.': 0.36; 'subject:one': 0.36; 'url:org': 0.36; 'should': 0.36; 'driving': 0.38; 'skip:. 20': 0.38; 'to:addr :python-list': 0.38; 'pm,': 0.38; 'that,': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'above,': 0.60; 'simple': 0.61; 'missing.': 0.84; 'skip:/ 30': 0.84
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 :content-type; bh=b6mnHN/VO7+sLr/LPwe6F9TDvdUqS6jrTCEk0hFLK6g=; b=AN8jFJX4IeO6cwwt2L1xRZAOzuRyAJUZQCxhMDE/iPOV6/PCrEl8hefi5zEklKIGNf AfA/8c4OSLwMqqPYcWn59QIYIdLq4j86xdQc9zi/iF9l0hSs4SC12h9GoGasoB2Fj6HA gDldaHl5kCrHUX1gEtFa5B/6+sxp/HpSvM9DCh3JsRd5Ay82aS1HivrOV6cE3KQgb5jx 5FfmyktFlP4LMDdhFEXiQX4H8dfwdmKi260Vw8UOinyn/YbDFI1/qBim4hmCXRXC07E7 YE1lo80MDeMGUz1VwOBpIvVlROJqZa8fgRVGOifNqQjm8sa95O4qdfsqF3MjxyTSUfL+ qYZw==
MIME-Version 1.0
X-Received by 10.180.188.197 with SMTP id gc5mr4978794wic.30.1389734819691; Tue, 14 Jan 2014 13:26:59 -0800 (PST)
In-Reply-To <CAGGBd_oTtKM=CK=yGwOsKFNh5_j4yC2LaTJwz7yedt7XuSFdYw@mail.gmail.com>
References <CAGGBd_oTtKM=CK=yGwOsKFNh5_j4yC2LaTJwz7yedt7XuSFdYw@mail.gmail.com>
Date Tue, 14 Jan 2014 13:26:59 -0800
Subject Re: setup.py issue - some files are included as intended, but one is not
From Dan Stromberg <drsalists@gmail.com>
To Python List <python-list@python.org>
Content-Type text/plain; charset=ISO-8859-1
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.5480.1389734821.18130.python-list@python.org> (permalink)
Lines 56
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1389734821 news.xs4all.nl 2833 [2001:888:2000:d::a6]:55514
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:63943

Show key headers only | View raw


On Sat, Jan 11, 2014 at 2:04 PM, Dan Stromberg <drsalists@gmail.com> wrote:
> Hi folks.
>
> I have a setup.py problem that's driving me nuts.

Anyone?  I've received 0 responses.

> I have a treap.py file that tries to "import * from pyx_treap.so", and
> failing that, it'll "import * from py_treap.py" (sans extensions of
> course).  Naturally, all 3 of these should be included - although in
> the case of pyx_treap.so, it probably should be a .c that's included.
>
> It is also intended to include nest.py, which has a simple form.
>
> Well, treap.py, nest.py and pyx_treap.c are included fine, but I can't
> seem to get py_treap.py to be included for some reason.
>
> I get no errors during "python setup.py sdist upload", but upon
> "python $(which pip) install treap", I get:
> $ sudo /usr/bin/python $(which pip) install treap
> Downloading/unpacking treap
>   Running setup.py egg_info for package treap
>
>     file py_treap.py (for module py_treap) not found
> Installing collected packages: treap
>   Running setup.py install for treap
>     file py_treap.py (for module py_treap) not found
>     file py_treap.py (for module py_treap) not found
>
>     file py_treap.py (for module py_treap) not found
>     file py_treap.py (for module py_treap) not found
> Successfully installed treap
> Cleaning up...
>
> And it's not successfully installed - py_treap.py is missing.  The pyx
> code does its job, so the problem is masked, other than the messages
> above, and the absence of py_treap.py from
> /usr/local/lib/python2.7/dist-packages
>
> I can clearly see py_treap.py in ./dist/treap-1.35.tar.gz - it's at
> least getting packaged up that much.  It's not listed in
> /usr/local/lib/python2.7/dist-packages/treap-1.31.egg-info/SOURCES.txt
> , but I can see it in
> /usr/local/lib/python2.7/dist-packages/treap-1.31.egg-info/top_level.txt
> .
>
> My setup.py is at:
> http://stromberg.dnsalias.org/svn/treap/trunk/setup.py
>
> I've tried that setup.py and several variations on that theme, but
> none seem to include py_treap.py .
>
> Please make some suggestions?  How can I get py_treap.py included in
> the pip install?
>
> Thanks!

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


Thread

Re: setup.py issue - some files are included as intended, but one is not Dan Stromberg <drsalists@gmail.com> - 2014-01-14 13:26 -0800
  Re: setup.py issue - some files are included as intended, but one is not Piet van Oostrum <piet@vanoostrum.org> - 2014-01-15 16:18 +0100
    Re: setup.py issue - some files are included as intended, but one is not Dan Stromberg <drsalists@gmail.com> - 2014-01-17 16:43 -0800

csiph-web