Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 25 lines (19 sloc) 605 Bytes
#!/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