File: build-sdist

package info (click to toggle)
python-imapclient 3.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 668 kB
  • sloc: python: 5,355; sh: 14; makefile: 11
file content (25 lines) | stat: -rwxr-xr-x 605 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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