Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:not': 0.03; 'failing': 0.07; 'tries': 0.07; 'setup.py': 0.09; 'skip:/ 10': 0.09; 'subject:files': 0.09; '"python': 0.16; 'reason.': 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; 'module': 0.19; 'install': 0.23; "i've": 0.25; 'least': 0.26; '(for': 0.26; '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; '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:date:message-id:subject:from:to:content-type; bh=3lYcSK15kEfGIE1Q7kp0vgsDOY+dOzt0i96L65D5sZU=; b=qf6ShdP3pkgxWqZUXRudWrXTQKTaCJMVB89irSeidZVwryegRxMKrwjEaWqZRRhvbB aXCJpND129ZFfZhZHjL0Yjft/edm7Cz653Ynp/ENOEPa/fJQ+L9h/mhbL/PqlFzeySih IgVO9s/tAaAKDwUvZ49RA32Jsa9uv8/8PdHxUCgV2Z692PCeiRFICJhGgbxv36qc5caw 2rO5k+EUIplJellKF6jUW63Pu7gktt0cg4fj28aU5AmbTWHRcK3b7av/3z8zMTvmDPzS 1lIY1XrV0ddCaDR4Zk2aWANrSU9DvRCTMNHpCNC7U2mfc/f+e5ag7f3RLD/yNCoNp1+I okuw== MIME-Version: 1.0 X-Received: by 10.180.21.166 with SMTP id w6mr8484185wie.31.1389477845419; Sat, 11 Jan 2014 14:04:05 -0800 (PST) Date: Sat, 11 Jan 2014 14:04:05 -0800 Subject: setup.py issue - some files are included as intended, but one is not From: Dan Stromberg To: Python List 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 53 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1389477852 news.xs4all.nl 2909 [2001:888:2000:d::a6]:45546 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:63726 Hi folks. I have a setup.py problem that's driving me nuts. 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!