Google Groups Home
Help | Sign in
Message from discussion setuptools strangeness: bdist_egg works only in svn checkout
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Christopher Arndt  
View profile
 More options Mar 26, 6:57 am
From: Christopher Arndt <chris.ar...@web.de>
Date: Wed, 26 Mar 2008 11:57:01 +0100
Local: Wed, Mar 26 2008 6:57 am
Subject: Re: setuptools strangeness: bdist_egg works only in svn checkout
Florent Aide schrieb:

> On Wed, Mar 26, 2008 at 11:20 AM, Felix Schwarz <felix.schw...@web.de> wrote:
>>  Hi,

>>  I just noticed a behavior of setuptools which seems very alien to me: If I
>>  checkout the 1.0 branch and issue an "python setup.py bdist_egg", the
>>  resulting egg file is good and contains all files.

> We need to be more explicit in the setup.py file and add data files in
> the find_packages or data_files argument to setup()

What I usually do, is having a MANIFEST.in with something like this:

global-include *.cfg
recursive-include <mypackage>/static *
recursive-include <mypackage>/templates *.kid

graft doc
prune dist
prune build
global-exclude *.bak

This way, "python setup.py sdist" also works as expected. Maybe we
should include this in the quickstart templates?

Also, we should probably include finddata.py in the quickstart
templates, so you don't need TurboGears installed to run the setup.py of
your application.

Chris


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google