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: 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; 'distutils': 0.07; 'failing': 0.07; 'tries': 0.07; 'dan': 0.09; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'setup.py': 0.09; 'skip:/ 10': 0.09; 'subject:files': 0.09; 'sfxlen:2': 0.11; 'jan': 0.12; '"python': 0.16; 'anyone?': 0.16; 'reason.': 0.16; 'received:69.93': 0.16; 'responses.': 0.16; 'sdist': 0.16; 'skip:/ 70': 0.16; 'subject: \n ': 0.16; 'subject:included': 0.16; 'subject:issue': 0.16; 'sudo': 0.16; 'url:py': 0.16; 'url:svn': 0.16; 'variations': 0.16; 'extensions': 0.16; 'sat,': 0.16; 'appropriate': 0.16; 'wrote:': 0.18; 'module': 0.19; 'install': 0.23; 'header:User-Agent:1': 0.23; "i've": 0.25; 'least': 0.26; '(for': 0.26; 'header:In-Reply-To:1': 0.27; 'installed': 0.27; 'to:2**1': 0.27; 'tried': 0.27; 'topic': 0.29; 'errors': 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; 'installing': 0.36; 'much.': 0.36; 'subject:one': 0.36; 'charset :us-ascii': 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; 'received:173': 0.61; 'simple': 0.61; 'to:addr:distutils-sig': 0.63; 'missing.': 0.84; 'skip:/ 30': 0.84 Date: Tue, 14 Jan 2014 13:32:01 -0800 From: Ethan Furman User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: python-list@python.org, DistUtils mailing list Subject: Re: setup.py issue - some files are included as intended, but one is not References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3304.hostgator.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stoneleaf.us X-BWhitelist: no X-Source-IP: 173.12.184.233 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([173.12.184.233]) [173.12.184.233]:57879 X-Source-Auth: ethan+stoneleaf.us X-Email-Count: 8 X-Source-Cap: dG9idWs7dG9idWs7Z2F0b3IzMzA0Lmhvc3RnYXRvci5jb20= 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: 60 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1389735111 news.xs4all.nl 2926 [2001:888:2000:d::a6]:34126 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:63946 On 01/14/2014 01:26 PM, Dan Stromberg wrote: > On Sat, Jan 11, 2014 at 2:04 PM, Dan Stromberg wrote: >> Hi folks. >> >> I have a setup.py problem that's driving me nuts. > > Anyone? I've received 0 responses. I have no answer, but forwarding to Distutils (hopefully it's an appropriate topic ;) >> 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!