File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -9,16 +9,29 @@ set -ev
9
9
python3 -m pip install --upgrade pip setuptools wheel
10
10
11
11
BASEDIR=$( dirname $( readlink -f $( dirname $0 ) ) )
12
+ DISTDIR=dist
12
13
13
14
(
14
15
cd $BASEDIR
15
- mkdir -p dist
16
- rm -rf dist /*
16
+ mkdir -p $DISTDIR
17
+ rm -r $DISTDIR /*
17
18
18
19
for d in opentelemetry-api/ opentelemetry-sdk/ ext/* / ; do
19
20
(
21
+ echo " building $d "
20
22
cd " $d "
21
- python3 setup.py --verbose bdist_wheel --dist-dir " $BASEDIR /dist/"
23
+ # Some ext directories (such as docker tests) are not intended to be
24
+ # packaged. Verify the intent by looking for a setup.py.
25
+ if [ -f setup.py ]; then
26
+ python3 setup.py sdist --dist-dir " $BASEDIR /dist/" clean --all
27
+ fi
22
28
)
23
29
done
30
+ # Build a wheel for each source distribution
31
+ (
32
+ cd $DISTDIR
33
+ for x in * .tar.gz ; do
34
+ pip wheel --no-deps $x
35
+ done
36
+ )
24
37
)
You can’t perform that action at this time.
0 commit comments