From: Menno Smits Date: Tue, 7 Jul 2015 03:36:23 +0000 (+1200) Subject: Added a source distribution build script X-Git-Tag: 1.0.0~1^2~57^2~27 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=5614f9db3ddc035b1a2dc8dcf596b7f83028a225;p=imapclient.git Added a source distribution build script To work around: https://bitbucket.org/pypa/setuptools/issue/141 --- diff --git a/build-sdist b/build-sdist new file mode 100755 index 0000000..b883919 --- /dev/null +++ b/build-sdist @@ -0,0 +1,25 @@ +#!/bin/bash + +# This script builds the IMAPClient source distribution inside a +# virtualenv. +# +# This is needed to work around this issue with setuptools: +# https://bitbucket.org/pypa/setuptools/issue/141 +# +# In summary: if a different version of one of the "setup_requires" +# dependencies is globally installed, then setuptools will abort with +# a VersionConflict exception. Building in a virtualenv works around +# the bug. + +env=.build-env + +rm -rf $env +virtualenv $env + +. $env/bin/activate +python setup.py sdist --formats=zip --dist-dir . +deactivate + +rm -rf $env + +# TODO: validation of the source tarball