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
5906b35b
Commit
5906b35b
authored
Feb 26, 2019
by
Rob Buckley
Browse files
Merge branch 'cpython-10.9' of
https://github.com/radarhere/multibuild
into radarhere-cpython-10.9
parents
8605156c
91582ee4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
19 deletions
+19
-19
.travis.yml
.travis.yml
+4
-4
README.rst
README.rst
+2
-2
osx_utils.sh
osx_utils.sh
+13
-13
No files found.
.travis.yml
View file @
5906b35b
...
@@ -45,15 +45,15 @@ matrix:
...
@@ -45,15 +45,15 @@ matrix:
-
PYTHON_VERSION=2.7
-
PYTHON_VERSION=2.7
-
TEST_BUILDS=1
-
TEST_BUILDS=1
-
os
:
osx
-
os
:
osx
language
:
objective-c
env
:
env
:
-
PYTHON_VERSION=2.7
-
PYTHON_VERSION=2.7
-
VENV=venv
-
MB_PYTHON_OSX_VER=10.9
-
TEST_BUILDS=1
-
os
:
osx
-
os
:
osx
language
:
objective-c
env
:
env
:
-
PYTHON_VERSION=2.7
-
PYTHON_VERSION=2.7
-
MB_PYTHON_OSX_VER=10.9
-
VENV=venv
-
TEST_BUILDS=1
-
os
:
osx
-
os
:
osx
env
:
env
:
-
PYTHON_VERSION=3.4
-
PYTHON_VERSION=3.4
...
...
README.rst
View file @
5906b35b
...
@@ -64,9 +64,9 @@ shell scripts listed above are available for your build and test.
...
@@ -64,9 +64,9 @@ shell scripts listed above are available for your build and test.
OS X builds may be targetted either at macOS 10.6+
OS X builds may be targetted either at macOS 10.6+
(dual arch 64 / 32 bit) or macOS 10.9+ (64b only). These depend on the
(dual arch 64 / 32 bit) or macOS 10.9+ (64b only). These depend on the
corresponding build of python from https://www.python.org/downloads/mac-osx/.
corresponding build of python from https://www.python.org/downloads/mac-osx/.
At the time of writing, 10.9+ / 64 bit builds are supported for
p
ython
At the time of writing, 10.9+ / 64 bit builds are supported for
P
ython
versions 3.6.5 / 2.7.15 and above. If you want to build for an older version
versions 3.6.5 / 2.7.15 and above. If you want to build for an older version
of
p
ython, you'll have to target 10.6+ / dual arch.
of
P
ython, you'll have to target 10.6+ / dual arch.
The ``build_wheel`` function builds the wheel, and the ``install_run``
The ``build_wheel`` function builds the wheel, and the ``install_run``
function installs the wheel and tests it. Look in ``common_utils.sh`` for
function installs the wheel and tests it. Look in ``common_utils.sh`` for
...
...
osx_utils.sh
View file @
5906b35b
...
@@ -119,12 +119,13 @@ function pyinst_ext_for_version {
...
@@ -119,12 +119,13 @@ function pyinst_ext_for_version {
function
pyinst_fname_for_version
{
function
pyinst_fname_for_version
{
# echo filename for OSX installer file given Python and minimum
# echo filename for OSX installer file given Python and minimum
# mac
osx
versions
# mac
OS
versions
# Parameters
# Parameters
# $py_version (
p
ython version in major.minor.extra format)
# $py_version (
P
ython version in major.minor.extra format)
# $py_osx_ver: {major.minor | not defined}
# $py_osx_ver: {major.minor | not defined}
# if defined, the macosx version that python is built for, e.g.
# if defined, the macOS version that Python is built for, e.g.
# "10.6" or "10.9", if not defined, uses the default MACPYTHON_DEFAULT_OSX
# "10.6" or "10.9", if not defined, uses the default
# MACPYTHON_DEFAULT_OSX
# Note: this is the version the Python is built for, and hence
# Note: this is the version the Python is built for, and hence
# the min version supported, NOT the version of the current system
# the min version supported, NOT the version of the current system
local
py_version
=
$1
local
py_version
=
$1
...
@@ -156,11 +157,11 @@ function get_macpython_osx_ver {
...
@@ -156,11 +157,11 @@ function get_macpython_osx_ver {
}
}
function
mac_cpython_arch_for_osx_ver
{
function
mac_cpython_arch_for_osx_ver
{
# echo arch (intel or x86_64) for
cp
ython python.org builds targetted for
# echo arch (intel or x86_64) for
CP
ython python.org builds targetted for
# the given minimum macOS version
# the given minimum macOS version
# Parameters
# Parameters
# $py_osx_ver (major.minor | not defined}
# $py_osx_ver (major.minor | not defined}
# the macosx version that
p
ython is built for, e.g.
# the macosx version that
P
ython is built for, e.g.
# "10.6" or "10.9", or MB_PYTHON_OSX_VER if undefined
# "10.6" or "10.9", or MB_PYTHON_OSX_VER if undefined
#
#
py_osx_ver
=
${
1
:-
$MB_PYTHON_OSX_VER
}
py_osx_ver
=
${
1
:-
$MB_PYTHON_OSX_VER
}
...
@@ -180,8 +181,8 @@ function install_macpython {
...
@@ -180,8 +181,8 @@ function install_macpython {
# $version : [implementation-]major[.minor[.patch]]
# $version : [implementation-]major[.minor[.patch]]
# The Python implementation to install, e.g. "3.6" or "pypy-5.4"
# The Python implementation to install, e.g. "3.6" or "pypy-5.4"
# $py_osx_ver: {major.minor | not defined}
# $py_osx_ver: {major.minor | not defined}
# if defined, the mac
osx
version that
cp
ython is built for, e.g.
# if defined, the mac
OS
version that
CP
ython is built for, e.g.
# "10.6" or "10.9". Ignored for
pyp
y
# "10.6" or "10.9". Ignored for
PyP
y
local
version
=
$1
local
version
=
$1
local
py_osx_ver
=
$2
local
py_osx_ver
=
$2
if
[[
"
$version
"
=
~ pypy-
([
0-9
\.
]
+
)
]]
;
then
if
[[
"
$version
"
=
~ pypy-
([
0-9
\.
]
+
)
]]
;
then
...
@@ -203,9 +204,9 @@ function install_mac_cpython {
...
@@ -203,9 +204,9 @@ function install_mac_cpython {
# "3" or "3.4" or "3.4.1".
# "3" or "3.4" or "3.4.1".
# $py_osx_ver
# $py_osx_ver
# {major.minor | not defined}
# {major.minor | not defined}
# if defined, the mac
osx
version that
p
ython is built for, e.g.
# if defined, the mac
OS
version that
P
ython is built for, e.g.
# "10.6" or "10.9"
# "10.6" or "10.9"
# sets $PYTHON_EXE variable to
p
ython executable
# sets $PYTHON_EXE variable to
P
ython executable
local
py_version
=
$(
fill_pyver
$1
)
local
py_version
=
$(
fill_pyver
$1
)
local
py_osx_ver
=
$2
local
py_osx_ver
=
$2
local
py_stripped
=
$(
strip_ver_suffix
$py_version
)
local
py_stripped
=
$(
strip_ver_suffix
$py_version
)
...
@@ -318,9 +319,8 @@ function get_macpython_environment {
...
@@ -318,9 +319,8 @@ function get_macpython_environment {
# If defined - make virtualenv in this directory, set python / pip
# If defined - make virtualenv in this directory, set python / pip
# commands accordingly
# commands accordingly
# $py_osx_ver: {major.minor | not defined}
# $py_osx_ver: {major.minor | not defined}
# if defined, the macosx version that python is built for, e.g.
# if defined, the macOS version that Python is built for, e.g.
# "10.6" or "10.9", if not defined, use the version from the
# "10.6" or "10.9", if not defined, use the version from MB_PYTHON_OSX_VER
# environment variable MB_PYTHON_OSX_VER
#
#
# Installs Python
# Installs Python
# Sets $PYTHON_EXE to path to Python executable
# Sets $PYTHON_EXE to path to Python executable
...
...
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