File tree 3 files changed +10
-12
lines changed
3 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ jobs:
109
109
110
110
- name : ' 🛠️ pip dependencies'
111
111
run : |
112
- pip install setuptools wheel
112
+ pip install --upgrade setuptools wheel
113
113
114
114
- name : ' 🚧 Build distribution'
115
115
shell : bash
Original file line number Diff line number Diff line change @@ -4,16 +4,12 @@ set -e -x
4
4
cd bindings/python
5
5
6
6
# Compile wheels
7
- if [ -f /opt/python/cp36-cp36m/bin/python ]; then
8
- /opt/python/cp36-cp36m/bin/python setup.py bdist_wheel $@
9
- else
10
- python3 setup.py bdist_wheel $@
11
- fi
7
+ python3.7 setup.py bdist_wheel $@
12
8
cd dist
13
9
14
10
# We can't repair an aarch64 wheel on x64 hosts
15
11
# https://github.com/pypa/auditwheel/issues/244
16
12
if [[ ! " $* " =~ " aarch64" ]]; then
17
13
auditwheel repair * .whl
18
14
mv -f wheelhouse/* .whl .
19
- fi
15
+ fi
Original file line number Diff line number Diff line change 3
3
4
4
from __future__ import print_function
5
5
import glob
6
+ import logging
6
7
import os
7
8
import subprocess
8
9
import shutil
9
10
import sys
10
11
import platform
11
12
import setuptools
12
13
13
- from distutils import log
14
- from distutils .core import setup
15
- from distutils .util import get_platform
16
- from distutils .command .build import build
17
- from distutils .command .sdist import sdist
14
+ from setuptools import setup
15
+ from sysconfig import get_platform
16
+ from setuptools .command .build import build
17
+ from setuptools .command .sdist import sdist
18
18
from setuptools .command .bdist_egg import bdist_egg
19
19
20
+ log = logging .getLogger (__name__ )
21
+
20
22
SYSTEM = sys .platform
21
23
22
24
# sys.maxint is 2**31 - 1 on both 32 and 64 bit mingw
You can’t perform that action at this time.
0 commit comments