This repository has been archived by the owner on May 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
config.sh
46 lines (41 loc) · 2.17 KB
/
config.sh
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Define custom utilities
# Test for OSX with [ -n "$IS_OSX" ]
# Adapted from MacPython/numpy-wheels
# https://github.com/MacPython/numpy-wheels/blob/87b189083a5f77225c3e51895c16d11711f73987/config.sh#L4-L7
if [ $(uname) == "Linux" ]; then
IS_LINUX=1
! git config --global --add safe.directory /io/pandas
fi
function pre_build {
# Any stuff that you need to do before you start building the wheels
# Runs in the root directory of this repository.
if [ -n "$IS_OSX" ]; then
# Override pandas' default minimum MACOSX_DEPLOYEMENT_TARGET=10.9,
# so we can build for older Pythons if we really want to.
# See https://github.com/pandas-dev/pandas/pull/24274
local _plat=$(get_distutils_platform)
if [[ -z $MACOSX_DEPLOYMENT_TARGET && "$_plat" =~ macosx-(10\.[0-9]+)-.* ]]; then
export MACOSX_DEPLOYMENT_TARGET=${BASH_REMATCH[1]}
fi
fi
}
function build_wheel {
# Override common_utils build_wheel function to fix version error
# Version error due to versioneer inside submodule
build_bdist_wheel $@
}
function run_tests {
# Runs tests on installed distribution from an empty directory
export PYTHONHASHSEED=$(python -c 'import random; print(random.randint(1, 4294967295))')
export PANDAS_CI=1
echo $PATH
echo ${MB_PYTHON_VERSION}
which -a python
pip list
python -c 'import pandas; pandas.show_versions()'
# Skip test_float_precision_options: https://github.com/pandas-dev/pandas/issues/36429
# Skip test_rolling_var_numerical_issues: https://github.com/pandas-dev/pandas/issues/37398
# Skip test_rolling_skew_kurt_large_value_range: https://github.com/pandas-dev/pandas/issues/37398
# Skip test_pairwise_with_self/test_no_pairwise_with_self: https://github.com/pandas-dev/pandas/issues/39553
python -c 'import pandas; pandas.test(extra_args=["-m not clipboard and not single_cpu", "--skip-slow", "--skip-network", "--skip-db", "-n=2", "-k not test_rolling_var_numerical_issues and not test_rolling_skew_kurt_large_value_range and not test_float_precision_options and not test_pairwise_with_self and not test_no_pairwise_with_self and not test_pickle_frame_v124_unpickle_130"])'
}