Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a source distribution build script
To work around: https://bitbucket.org/pypa/setuptools/issue/141
- Loading branch information
Menno Smits
committed
Jul 7, 2015
1 parent
91eea33
commit 5614f9d
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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 |