forked from apache/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pulsar python client osx vagrant templates (apache#1919)
* Add pulsar python client osx vagrant templates * Change file name and aggregate build * Change file name and aggregate build * Move file location * Update license * Add Header to reaminging files
- Loading branch information
Showing
21 changed files
with
474 additions
and
1 deletion.
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,47 @@ | ||
#!/bin/bash | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
|
||
set -e | ||
|
||
GITTAG=#TAG# | ||
PYTHONVER=#PYTHONVER# | ||
|
||
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | ||
|
||
brew install openssl git boost pkg-config jsoncpp cmake protobuf260 log4cxx | ||
|
||
if [ "$PYTHONVER" = "PYTHON2" ] | ||
then | ||
brew install python@2 boost-python | ||
fi | ||
|
||
if [ "$PYTHONVER" = "PYTHON3" ] | ||
then | ||
brew install python boost-python3 | ||
fi | ||
|
||
brew link --force protobuf260 | ||
rm -rf incubator-pulsar | ||
git clone --depth 1 --branch $GITTAG https://github.com/apache/incubator-pulsar.git | ||
cd incubator-pulsar/pulsar-client-cpp | ||
cmake . -DBUILD_TESTS=OFF -DLINK_STATIC=ON | ||
make _pulsar -j8 | ||
cd python | ||
python setup.py bdist_wheel |
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,50 @@ | ||
#!/bin/bash | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
|
||
|
||
set -e | ||
|
||
printf "== Generate python 2.7 osx packages ==\n" | ||
|
||
cd osx-10.11-python2.7 | ||
sh generate-wheel-file.sh | ||
cd .. | ||
|
||
cd osx-10.12-python2.7 | ||
sh generate-wheel-file.sh | ||
cd .. | ||
|
||
cd osx-10.13-python2.7 | ||
sh generate-wheel-file.sh | ||
cd .. | ||
|
||
printf "== Generate python 3.6 osx packages ==\n" | ||
|
||
cd osx-10.11-python3.6 | ||
sh generate-wheel-file.sh | ||
cd .. | ||
|
||
cd osx-10.12-python3.6 | ||
sh generate-wheel-file.sh | ||
cd .. | ||
|
||
cd osx-10.13-python3.6 | ||
sh generate-wheel-file.sh | ||
cd .. |
28 changes: 28 additions & 0 deletions
28
pulsar-client-cpp/python/pkg/osx/osx-10.11-python2.7/Vagrantfile
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,28 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
|
||
Vagrant.configure("2") do |config| | ||
config.vm.box = "jhcook/osx-elcapitan-10.11" | ||
config.vm.provision "shell", path: "build.sh", privileged: false | ||
config.vm.provider :virtualbox do |vb| | ||
vb.name = "osx-10.11-python2.7" | ||
end | ||
end |
1 change: 1 addition & 0 deletions
1
pulsar-client-cpp/python/pkg/osx/osx-10.11-python2.7/build.sh.template
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 @@ | ||
../build.sh.template |
32 changes: 32 additions & 0 deletions
32
pulsar-client-cpp/python/pkg/osx/osx-10.11-python2.7/generate-wheel-file.sh
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,32 @@ | ||
#!/bin/bash | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
|
||
|
||
set -e | ||
|
||
gitTag="${gitTag:-master}" | ||
pythonVer="PYTHON2" | ||
|
||
rm -rf *.whl | ||
sed s/#TAG#/$gitTag/g build.sh.template > build.sh.template2 | ||
sed s/#PYTHONVER#/$pythonVer/g build.sh.template2 > build.sh | ||
vagrant up --provision | ||
vagrant scp :/Users/vagrant/incubator-pulsar/pulsar-client-cpp/python/dist/*.whl . | ||
vagrant halt -f |
28 changes: 28 additions & 0 deletions
28
pulsar-client-cpp/python/pkg/osx/osx-10.11-python3.6/Vagrantfile
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,28 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
|
||
Vagrant.configure("2") do |config| | ||
config.vm.box = "jhcook/osx-elcapitan-10.11" | ||
config.vm.provision "shell", path: "build.sh", privileged: false | ||
config.vm.provider :virtualbox do |vb| | ||
vb.name = "osx-10.11-python3.6" | ||
end | ||
end |
1 change: 1 addition & 0 deletions
1
pulsar-client-cpp/python/pkg/osx/osx-10.11-python3.6/build.sh.template
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 @@ | ||
../build.sh.template |
32 changes: 32 additions & 0 deletions
32
pulsar-client-cpp/python/pkg/osx/osx-10.11-python3.6/generate-wheel-file.sh
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,32 @@ | ||
#!/bin/bash | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
|
||
|
||
set -e | ||
|
||
gitTag="${gitTag:-master}" | ||
pythonVer="PYTHON3" | ||
|
||
rm -rf *.whl | ||
sed s/#TAG#/$gitTag/g build.sh.template > build.sh.template2 | ||
sed s/#PYTHONVER#/$pythonVer/g build.sh.template2 > build.sh | ||
vagrant up --provision | ||
vagrant scp :/Users/vagrant/incubator-pulsar/pulsar-client-cpp/python/dist/*.whl . | ||
vagrant halt -f |
28 changes: 28 additions & 0 deletions
28
pulsar-client-cpp/python/pkg/osx/osx-10.12-python2.7/Vagrantfile
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,28 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
|
||
Vagrant.configure("2") do |config| | ||
config.vm.box = "jhcook/macos-sierra" | ||
config.vm.provision "shell", path: "build.sh", privileged: false | ||
config.vm.provider :virtualbox do |vb| | ||
vb.name = "osx-10.12-python2.7" | ||
end | ||
end |
1 change: 1 addition & 0 deletions
1
pulsar-client-cpp/python/pkg/osx/osx-10.12-python2.7/build.sh.template
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 @@ | ||
../build.sh.template |
32 changes: 32 additions & 0 deletions
32
pulsar-client-cpp/python/pkg/osx/osx-10.12-python2.7/generate-wheel-file.sh
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,32 @@ | ||
#!/bin/bash | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
|
||
|
||
set -e | ||
|
||
gitTag="${gitTag:-master}" | ||
pythonVer="PYTHON2" | ||
|
||
rm -rf *.whl | ||
sed s/#TAG#/$gitTag/g build.sh.template > build.sh.template2 | ||
sed s/#PYTHONVER#/$pythonVer/g build.sh.template2 > build.sh | ||
vagrant up --provision | ||
vagrant scp :/Users/vagrant/incubator-pulsar/pulsar-client-cpp/python/dist/*.whl . | ||
vagrant halt -f |
28 changes: 28 additions & 0 deletions
28
pulsar-client-cpp/python/pkg/osx/osx-10.12-python3.6/Vagrantfile
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,28 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
|
||
Vagrant.configure("2") do |config| | ||
config.vm.box = "jhcook/macos-sierra" | ||
config.vm.provision "shell", path: "build.sh", privileged: false | ||
config.vm.provider :virtualbox do |vb| | ||
vb.name = "osx-10.12-python3.6" | ||
end | ||
end |
1 change: 1 addition & 0 deletions
1
pulsar-client-cpp/python/pkg/osx/osx-10.12-python3.6/build.sh.template
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 @@ | ||
../build.sh.template |
32 changes: 32 additions & 0 deletions
32
pulsar-client-cpp/python/pkg/osx/osx-10.12-python3.6/generate-wheel-file.sh
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,32 @@ | ||
#!/bin/bash | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
|
||
|
||
set -e | ||
|
||
gitTag="${gitTag:-master}" | ||
pythonVer="PYTHON3" | ||
|
||
rm -rf *.whl | ||
sed s/#TAG#/$gitTag/g build.sh.template > build.sh.template2 | ||
sed s/#PYTHONVER#/$pythonVer/g build.sh.template2 > build.sh | ||
vagrant up --provision | ||
vagrant scp :/Users/vagrant/incubator-pulsar/pulsar-client-cpp/python/dist/*.whl . | ||
vagrant halt -f |
Oops, something went wrong.