Skip to content

Commit 5fcc752

Browse files
committed
Remove /etc/profile load in GNU/Linux workflows
1 parent 70ae23d commit 5fcc752

File tree

3 files changed

+0
-48
lines changed

3 files changed

+0
-48
lines changed

.github/workflows/basemap-data-hires.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ jobs:
2626
-
2727
name: Build wheel
2828
run: |
29-
set -e
30-
. /etc/profile
3129
cd ${{ env.PKGDIR }}
3230
python setup.py sdist bdist_wheel --universal
3331
-
@@ -70,14 +68,10 @@ jobs:
7068
-
7169
name: Install package
7270
run: |
73-
set -e
74-
. /etc/profile
7571
pip install ${{ env.PKGDIR }}/dist/*.whl
7672
-
7773
name: Test package
7874
run: |
79-
set -e
80-
. /etc/profile
8175
python -c "from mpl_toolkits import basemap_data; print(basemap_data)"
8276
8377
upload:
@@ -106,8 +100,6 @@ jobs:
106100
-
107101
name: Install requirements
108102
run: |
109-
set -e
110-
. /etc/profile
111103
pip install --prefer-binary twine
112104
-
113105
name: Upload distributables
@@ -116,8 +108,6 @@ jobs:
116108
TWINE_PASSWORD: "${{ secrets.PYPI_TOKEN }}"
117109
TWINE_REPOSITORY_URL: "${{ secrets.PYPI_REPOSITORY_URL }}"
118110
run: |
119-
set -e
120-
. /etc/profile
121111
python -m twine check \
122112
${{ env.PKGDIR }}/dist/*.zip \
123113
${{ env.PKGDIR }}/dist/*.whl

.github/workflows/basemap-data.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ jobs:
2626
-
2727
name: Build wheel
2828
run: |
29-
set -e
30-
. /etc/profile
3129
cd ${{ env.PKGDIR }}
3230
python setup.py sdist bdist_wheel --universal
3331
-
@@ -70,14 +68,10 @@ jobs:
7068
-
7169
name: Install package
7270
run: |
73-
set -e
74-
. /etc/profile
7571
pip install ${{ env.PKGDIR }}/dist/*.whl
7672
-
7773
name: Test package
7874
run: |
79-
set -e
80-
. /etc/profile
8175
python -c "from mpl_toolkits import basemap_data; print(basemap_data)"
8276
8377
upload:
@@ -106,8 +100,6 @@ jobs:
106100
-
107101
name: Install requirements
108102
run: |
109-
set -e
110-
. /etc/profile
111103
pip install --prefer-binary twine
112104
-
113105
name: Upload distributables
@@ -116,8 +108,6 @@ jobs:
116108
TWINE_PASSWORD: "${{ secrets.PYPI_TOKEN }}"
117109
TWINE_REPOSITORY_URL: "${{ secrets.PYPI_REPOSITORY_URL }}"
118110
run: |
119-
set -e
120-
. /etc/profile
121111
python -m twine check \
122112
${{ env.PKGDIR }}/dist/*.zip \
123113
${{ env.PKGDIR }}/dist/*.whl

.github/workflows/basemap-for-manylinux.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ jobs:
2828
-
2929
name: Install CMake 3.6.2
3030
run: |
31-
set -e
32-
. /etc/profile
3331
apt-get update
3432
apt-get install -y libidn11
3533
pkgvers=3.6.2
@@ -45,15 +43,11 @@ jobs:
4543
-
4644
name: Install GCC toolchain
4745
run: |
48-
set -e
49-
. /etc/profile
5046
apt-get update
5147
apt-get install -y gcc g++ make
5248
-
5349
name: Build GEOS from source
5450
run: |
55-
set -e
56-
. /etc/profile
5751
cd ${{ env.PKGDIR }}
5852
python -c "import utils; utils.GeosLibrary('3.5.1').build('extern', njobs=16)"
5953
-
@@ -98,22 +92,16 @@ jobs:
9892
-
9993
name: Install GCC toolchain
10094
run: |
101-
set -e
102-
. /etc/profile
10395
apt-get update
10496
apt-get install -y gcc g++ make
10597
-
10698
name: Install unzip
10799
run: |
108-
set -e
109-
. /etc/profile
110100
apt-get update
111101
apt-get install -y unzip
112102
-
113103
name: Generate NumPy headers
114104
run: |
115-
set -e
116-
. /etc/profile
117105
case "${{ matrix.python-version }}" in
118106
2.[67]|3.[01234]) pkgvers=1.11.3;;
119107
*) pkgvers=1.16.6;;
@@ -132,8 +120,6 @@ jobs:
132120
-
133121
name: Build wheel
134122
run: |
135-
set -e
136-
. /etc/profile
137123
cd ${{ env.PKGDIR }}
138124
export GEOS_DIR=extern
139125
export NUMPY_INCLUDE_PATH=extern/include
@@ -187,22 +173,16 @@ jobs:
187173
-
188174
name: Install GCC toolchain
189175
run: |
190-
set -e
191-
. /etc/profile
192176
apt-get update
193177
apt-get install -y gcc g++ make
194178
-
195179
name: Install unzip
196180
run: |
197-
set -e
198-
. /etc/profile
199181
apt-get update
200182
apt-get install -y unzip
201183
-
202184
name: Install patchelf from source
203185
run: |
204-
set -e
205-
. /etc/profile
206186
pkgvers=0.9
207187
pkgname=patchelf
208188
pkgcode=${pkgname}-${pkgvers}
@@ -220,14 +200,10 @@ jobs:
220200
-
221201
name: Install auditwheel
222202
run: |
223-
set -e
224-
. /etc/profile
225203
pip install "auditwheel < 4.0"
226204
-
227205
name: Repair wheel
228206
run: |
229-
set -e
230-
. /etc/profile
231207
cd ${{ env.PKGDIR }}
232208
export LD_LIBRARY_PATH="$(readlink -f extern/lib)"
233209
auditwheel repair -w dist dist/*.whl
@@ -274,8 +250,6 @@ jobs:
274250
-
275251
name: Install requirements
276252
run: |
277-
set -e
278-
. /etc/profile
279253
pip install --prefer-binary twine
280254
-
281255
name: Upload distributables
@@ -284,8 +258,6 @@ jobs:
284258
TWINE_PASSWORD: "${{ secrets.PYPI_TOKEN }}"
285259
TWINE_REPOSITORY_URL: "${{ secrets.PYPI_REPOSITORY_URL }}"
286260
run: |
287-
set -e
288-
. /etc/profile
289261
python -m twine check \
290262
${{ env.PKGDIR }}/dist/*.zip \
291263
${{ env.PKGDIR }}/dist/*-manylinux1*.whl

0 commit comments

Comments
 (0)