Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
a73b4359
Unverified
Commit
a73b4359
authored
Jan 28, 2019
by
Paul Yang
Committed by
GitHub
Jan 28, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5640 from TeBoring/3.7.x-cherrypick
cherrypick changes from master
parents
53a1d496
c1431649
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
67 additions
and
5 deletions
+67
-5
build.sh
kokoro/release/protoc/macos/build.sh
+2
-2
build_artifacts.sh
kokoro/release/python/linux/build_artifacts.sh
+7
-1
config.sh
kokoro/release/python/linux/config.sh
+2
-0
build_artifacts.sh
kokoro/release/python/macos/build_artifacts.sh
+8
-2
config.sh
kokoro/release/python/macos/config.sh
+48
-0
No files found.
kokoro/release/protoc/macos/build.sh
View file @
a73b4359
#!/bin/bash
set
-x
CXXFLAGS_COMMON
=
"-DNDEBUG -mmacosx-version-min=10.9"
set
-
e
x
CXXFLAGS_COMMON
=
"-
std=c++14 -
DNDEBUG -mmacosx-version-min=10.9"
cd
github/protobuf
./autogen.sh
...
...
kokoro/release/python/linux/build_artifacts.sh
View file @
a73b4359
...
...
@@ -7,11 +7,17 @@ pushd $(dirname $0)/../../../..
export
REPO_DIR
=
protobuf
export
BUILD_VERSION
=
`
grep
-i
"version"
python/google/protobuf/__init__.py |
grep
-o
"'.*'"
|
tr
-d
"'"
`
export
BUILD_COMMIT
=
v
$BUILD_VERSION
if
[
-z
$KOKORO_JOB_NAME
]
;
then
export
BUILD_COMMIT
=
master
else
export
BUILD_COMMIT
=
`
echo
"
$KOKORO_JOB_NAME
"
|
cut
-d
'/'
-f
3
`
fi
export
PLAT
=
x86_64
export
UNICODE_WIDTH
=
32
export
MACOSX_DEPLOYMENT_TARGET
=
10.9
rm
-rf
artifacts/
rm
-rf
multibuild/
mkdir
artifacts
export
ARTIFACT_DIR
=
$(
pwd
)
/artifacts
...
...
kokoro/release/python/linux/config.sh
View file @
a73b4359
...
...
@@ -6,6 +6,8 @@ function pre_build {
# Runs in the root directory of this repository.
pushd
protobuf
yum
install
-y
devtoolset-2-libatomic-devel
# Build protoc
./autogen.sh
./configure
...
...
kokoro/release/python/macos/build_artifacts.sh
View file @
a73b4359
...
...
@@ -7,17 +7,23 @@ pushd $(dirname $0)/../../../..
export
REPO_DIR
=
protobuf
export
BUILD_VERSION
=
`
grep
-i
"version"
python/google/protobuf/__init__.py |
grep
-o
"'.*'"
|
tr
-d
"'"
`
export
BUILD_COMMIT
=
v
$BUILD_VERSION
if
[
-z
$KOKORO_JOB_NAME
]
;
then
export
BUILD_COMMIT
=
master
else
export
BUILD_COMMIT
=
`
echo
"
$KOKORO_JOB_NAME
"
|
cut
-d
'/'
-f
3
`
fi
export
PLAT
=
x86_64
export
UNICODE_WIDTH
=
32
export
MACOSX_DEPLOYMENT_TARGET
=
10.9
export
TRAVIS_OS_NAME
=
"osx"
rm
-rf
artifacts/
rm
-rf
multibuild/
mkdir
artifacts
export
ARTIFACT_DIR
=
$(
pwd
)
/artifacts
git clone https://github.com/matthew-brett/multibuild.git
cp
kokoro/release/python/
linux
/config.sh config.sh
cp
kokoro/release/python/
macos
/config.sh config.sh
OLD_PATH
=
$PATH
...
...
kokoro/release/python/macos/config.sh
0 → 100644
View file @
a73b4359
# Define custom utilities
# Test for OSX with [ -n "$IS_OSX" ]
function
pre_build
{
# Any stuff that you need to do before you start building the wheels
# Runs in the root directory of this repository.
pushd
protobuf
# Build protoc
./autogen.sh
./configure
CXXFLAGS
=
"-std=c++14 -fPIC -g -O2"
./configure
make
-j8
# Generate python dependencies.
pushd
python
python setup.py build_py
popd
popd
}
function
bdist_wheel_cmd
{
# Builds wheel with bdist_wheel, puts into wheelhouse
#
# It may sometimes be useful to use bdist_wheel for the wheel building
# process. For example, versioneer has problems with versions which are
# fixed with bdist_wheel:
# https://github.com/warner/python-versioneer/issues/121
local
abs_wheelhouse
=
$1
# Modify build version
pwd
ls
python setup.py bdist_wheel
--cpp_implementation
--compile_static_extension
cp
dist/
*
.whl
$abs_wheelhouse
}
function
build_wheel
{
build_wheel_cmd
"bdist_wheel_cmd"
$@
}
function
run_tests
{
# Runs tests on installed distribution from an empty directory
python
--version
python
-c
"from google.protobuf.pyext import _message;"
}
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