I have a django project with this architecture:
- setup.py
- Project /
- __ __ INIT. RU
- manage.py
- Settings /
- __ __ INIT. RU
- base.py
- dev.py
- URLs /
- __ __ INIT. RU
- base.py
- dev.py
I wanted to deploy it to .egg without the files 'dev.py'. I tried different ways: firstly, with
find_packages(exclude=['*.dev','dev'])
then with MANIFEST.in, which contains:
global-exclude dev.py
The second solution seems to work when I do sdist - with this warning when I install it:
warning: no previously-included files matching 'dev.py' found anywhere in distribution
but does not work with bdist-egg.
Here is 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,
Note that I'm using python 2.6.6, maybe this is important. Any idea how to create my egg correctly excluding dev files?