1
1
#! /bin/bash -e
2
2
3
- # edit the locale file if needed
4
- if [[ " $( uname) " == " Linux" && -n " $LC_ALL " ]]; then
5
- echo " Adding locale to the first line of pandas/__init__.py"
6
- rm -f pandas/__init__.pyc
7
- SEDC=" 3iimport locale\nlocale.setlocale(locale.LC_ALL, '$LC_ALL ')\n"
8
- sed -i " $SEDC " pandas/__init__.py
9
-
10
- echo " [head -4 pandas/__init__.py]"
11
- head -4 pandas/__init__.py
12
- echo
13
- fi
3
+ echo " Install Miniconda"
4
+ CONDA_URL=" https://github.com/conda-forge/miniforge/releases/download/4.14.0-0/Miniforge3-4.14.0-0-Linux-aarch64.sh"
5
+ echo " Downloading $CONDA_URL "
6
+ wget -q $CONDA_URL -O miniconda.sh
7
+ chmod +x miniconda.sh
14
8
9
+ MINICONDA_DIR=" $HOME /miniconda3"
10
+ rm -rf $MINICONDA_DIR
11
+ ./miniconda.sh -b -p $MINICONDA_DIR
15
12
16
- MINICONDA_DIR=/usr/local/miniconda
17
- if [ -e $MINICONDA_DIR ] && [ " $BITS32 " != yes ]; then
18
- echo " Found Miniconda installation at $MINICONDA_DIR "
19
- else
20
- echo " Install Miniconda"
21
- DEFAULT_CONDA_URL=" https://repo.continuum.io/miniconda/Miniconda3-latest"
22
- if [[ " $( uname -m) " == ' aarch64' ]]; then
23
- CONDA_URL=" https://github.com/conda-forge/miniforge/releases/download/4.10.1-4/Miniforge3-4.10.1-4-Linux-aarch64.sh"
24
- elif [[ " $( uname) " == ' Linux' ]]; then
25
- if [[ " $BITS32 " == " yes" ]]; then
26
- CONDA_URL=" $DEFAULT_CONDA_URL -Linux-x86.sh"
27
- else
28
- CONDA_URL=" $DEFAULT_CONDA_URL -Linux-x86_64.sh"
29
- fi
30
- elif [[ " $( uname) " == ' Darwin' ]]; then
31
- CONDA_URL=" $DEFAULT_CONDA_URL -MacOSX-x86_64.sh"
32
- else
33
- echo " OS $( uname) not supported"
34
- exit 1
35
- fi
36
- echo " Downloading $CONDA_URL "
37
- wget -q $CONDA_URL -O miniconda.sh
38
- chmod +x miniconda.sh
39
-
40
- MINICONDA_DIR=" $HOME /miniconda3"
41
- rm -rf $MINICONDA_DIR
42
- ./miniconda.sh -b -p $MINICONDA_DIR
43
- fi
44
13
export PATH=$MINICONDA_DIR /bin:$PATH
45
14
46
15
echo
@@ -70,11 +39,6 @@ time mamba env update -n pandas-dev --file="${ENV_FILE}"
70
39
echo " conda list -n pandas-dev"
71
40
conda list -n pandas-dev
72
41
73
- if [[ " $BITS32 " == " yes" ]]; then
74
- # activate 32-bit compiler
75
- export CONDA_BUILD=1
76
- fi
77
-
78
42
echo " activate pandas-dev"
79
43
source activate pandas-dev
80
44
@@ -90,15 +54,9 @@ if pip list | grep -q ^pandas; then
90
54
pip uninstall -y pandas || true
91
55
fi
92
56
93
- if [ " $( conda list -f qt --json) " != [] ]; then
94
- echo
95
- echo " remove qt"
96
- echo " causes problems with the clipboard, we use xsel for that"
97
- conda remove qt -y --force || true
98
- fi
99
-
100
57
echo " Build extensions"
101
- python setup.py build_ext -q -j3
58
+ # GH 47305: Parallel build can causes flaky ImportError from pandas/_libs/tslibs
59
+ python setup.py build_ext -q -j1
102
60
103
61
echo " Install pandas"
104
62
python -m pip install --no-build-isolation --no-use-pep517 -e .
0 commit comments