I have a django project with this kind of architecture :
- setup.py
 - project/
- __init__.py
 - manage.py
 - settings/
- __init__.py
 - base.py
 - dev.py
 
 - urls/
- __init__.py
 - base.py
 - dev.py
 
 
 
I wanted to deploy it in a .egg without my 'dev.py' files. I tried different ways : first, with a
find_packages(exclude=['*.dev','dev'])
, then with a MANIFEST.in which contains :
global-exclude dev.py
The second solution seems to work when I do a sdist - with this warning when I install it :
warning: no previously-included files matching 'dev.py' found anywhere in distribution 
, but does'nt work with a bdist-egg.
Here a part of my setup.py :
from setuptools import setup, find_packages
project import VERSION
packages = [
        'project',
        'project.settings',
        'project.urls',
]
setup(name='project',
  version=VERSION,
  package_dir = {'project' : 'project'},
  description  = 'My Project',
  author       = 'Simon Urli',
  author_email = '',
  url = '',
  packages = packages, #find_packages('project',exclude=['*.dev', 'dev']),
)
Note that I use python 2.6.6, maybe it matters. Any idea how to create my egg excluding the dev files properly ?