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


Groups > comp.lang.python > #63943 > unrolled thread

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

Started byDan Stromberg <drsalists@gmail.com>
First post2014-01-14 13:26 -0800
Last post2014-01-17 16:43 -0800
Articles 3 — 2 participants

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  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

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

FromDan Stromberg <drsalists@gmail.com>
Date2014-01-14 13:26 -0800
SubjectRe: setup.py issue - some files are included as intended, but one is not
Message-ID<mailman.5480.1389734821.18130.python-list@python.org>
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!

[toc] | [next] | [standalone]


#63991

FromPiet van Oostrum <piet@vanoostrum.org>
Date2014-01-15 16:18 +0100
Message-ID<m2a9ex5l5i.fsf@cochabamba.vanoostrum.org>
In reply to#63943
Dan Stromberg <drsalists@gmail.com> writes:

> 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 can't even install your code because there's a bug in it.

m4_treap.m4 contains this instruction twice:

        ifdef(/*pyx*/,cp)if current is None:
            ifdef(/*pyx*/,cp)raise KeyError

Which when generating pyx_treap.pyx (with *pyx* defined) expands to the syntactically incorrect

        cpif current is None:
            cpraise KeyError

-- 
Piet van Oostrum <piet@vanoostrum.org>
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]

[toc] | [prev] | [next] | [standalone]


#64207

FromDan Stromberg <drsalists@gmail.com>
Date2014-01-17 16:43 -0800
Message-ID<mailman.5666.1390005806.18130.python-list@python.org>
In reply to#63991
On Wed, Jan 15, 2014 at 7:18 AM, Piet van Oostrum <piet@vanoostrum.org> wrote:
> Dan Stromberg <drsalists@gmail.com> writes:
>
>> 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 can't even install your code because there's a bug in it.
>
> m4_treap.m4 contains this instruction twice:
>
>         ifdef(/*pyx*/,cp)if current is None:
>             ifdef(/*pyx*/,cp)raise KeyError
>
> Which when generating pyx_treap.pyx (with *pyx* defined) expands to the syntactically incorrect
>
>         cpif current is None:
>             cpraise KeyError
Apologies.  I'd fixed that in my source tree, but not checked it in.

It's checked in now.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web