Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fengzch-das
multibuild
Commits
4720fc36
Unverified
Commit
4720fc36
authored
Nov 11, 2023
by
Matti Picus
Committed by
GitHub
Nov 11, 2023
Browse files
Merge pull request #516 from matthew-brett/add-packages
MRG: Add tomli, ensure virtualenv
parents
c8a79690
18d8903b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
travis_linux_steps.sh
travis_linux_steps.sh
+4
-1
travis_osx_steps.sh
travis_osx_steps.sh
+2
-1
travis_steps.sh
travis_steps.sh
+6
-0
No files found.
travis_linux_steps.sh
View file @
4720fc36
...
@@ -19,10 +19,13 @@ MB_PYTHON_VERSION=${MB_PYTHON_VERSION:-$TRAVIS_PYTHON_VERSION}
...
@@ -19,10 +19,13 @@ MB_PYTHON_VERSION=${MB_PYTHON_VERSION:-$TRAVIS_PYTHON_VERSION}
function
before_install
{
function
before_install
{
# Install a virtualenv to work in.
# Install a virtualenv to work in.
# Virtualenv package may not be installed on host Python.
python
-m
pip
install
virtualenv
virtualenv
--python
=
$PYTHON_EXE
venv
virtualenv
--python
=
$PYTHON_EXE
venv
source
venv/bin/activate
source
venv/bin/activate
python
--version
# just to check
python
--version
# just to check
pip
install
--upgrade
pip wheel
# Tomli for pyproject.toml parsing, to get dependencies.
pip
install
--upgrade
pip wheel tomli
}
}
function
build_wheel
{
function
build_wheel
{
...
...
travis_osx_steps.sh
View file @
4720fc36
...
@@ -39,7 +39,8 @@ function before_install {
...
@@ -39,7 +39,8 @@ function before_install {
get_macpython_environment
$MB_PYTHON_VERSION
venv
get_macpython_environment
$MB_PYTHON_VERSION
venv
source
venv/bin/activate
source
venv/bin/activate
pip
install
--upgrade
pip wheel
# Tomli for pyproject.toml parsing, to get dependencies.
pip
install
--upgrade
pip wheel tomli
}
}
# build_wheel function defined in common_utils (via osx_utils)
# build_wheel function defined in common_utils (via osx_utils)
...
...
travis_steps.sh
View file @
4720fc36
#!/bin/bash
#!/bin/bash
# Despite the name, this file is not specific to Travis-CI.
# It sets up the local environment for wheel building and testing.
# For Mac, configure xcode, and set up before_install and other
# functions to wrap builds.
# For linux, set up before_install to work in virtualenv, and set up wrapping
# to run build and tests in docker containers.
WHEEL_SDIR
=
${
WHEEL_SDIR
:-
wheelhouse
}
WHEEL_SDIR
=
${
WHEEL_SDIR
:-
wheelhouse
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment