Permalink
Browse files

use setuptools trick to use development builds only in build environment

  • Loading branch information...
1 parent 6c27647 commit cccef7e6049537627a88b2ceb7809fa8a3674966 @brosner brosner committed Dec 6, 2009
Showing with 5 additions and 1 deletion.
  1. +5 −1 dev_release_builder.py
View
@@ -130,9 +130,13 @@ def build_release(dist_dir, kind, user, repository, commit):
source_dir = os.path.join(WORK_DIR, basename)
elif kind == "bitbucket":
source_dir = os.path.join(WORK_DIR, repository)
+ setup_py = os.path.realpath(os.path.join(source_dir, "setup.py"))
+ # use setuptools hack to allow egg_info in setup.cfg to work for
+ # development builds (requires setuptools in dev release environment)
cmd = [
sys.executable,
- "setup.py", "sdist",
+ "-c", "import setuptools;__file__=%r;execfile(%r)" % (setup_py, setup_py),
+ "sdist",
"-d", dist_dir,
]
call_subprocess(cmd,

0 comments on commit cccef7e

Please sign in to comment.