-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use cibuildwheel to build Linux wheels. (#1281)
* Improve robustness of tests that read data in from files by determining the path of the test file.
- Loading branch information
Showing
9 changed files
with
114 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
# SETUP | ||
set -e -x | ||
rm -rf venv | ||
|
||
# INSTALL SYSTEM DEPENDENCIES | ||
|
||
yum -y install curl gsl-devel | ||
|
||
# INSTALL RUST | ||
|
||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y | ||
source "$HOME/.cargo/env" | ||
# Pin the rustc toolchain to a specific version. | ||
# Rust 1.64.0 will change the minimum glibc ABI | ||
# to a version incompatible with manylinux_2014, | ||
# so we need to be careful in general. | ||
rustup override set 1.62.1 | ||
# Pin cbindgen | ||
cargo install --locked cbindgen@0.24.3 | ||
|
||
# Taken from msprime/#2043 | ||
# We're running as root in the docker container so git commands issued by | ||
# setuptools_scm will fail without this: | ||
git config --global --add safe.directory /project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
def make_path(yaml): | ||
import os | ||
|
||
path_to_current_file = os.path.realpath(__file__) | ||
current_directory = os.path.split(path_to_current_file)[0] | ||
path_to_file = os.path.join(current_directory, yaml) | ||
return path_to_file |