Skip to content
Snippets Groups Projects
Commit 20fd84a8 authored by Sergey Yakubov's avatar Sergey Yakubov
Browse files

Merge pull request #183 in ASAPO/asapo from feature_ASAPO-156-wheels-for-python39 to develop

* commit 'cf3bab16':
  update build.sh for el7
  refactor python packaging, added python3.9
parents e509fc50 cf3bab16
Branches feature_ASAPO-157-lightweight-asapo-container
No related tags found
No related merge requests found
Showing with 46 additions and 26 deletions
......@@ -3,6 +3,8 @@
FEATURES
* Consumer API: Get last within consumer group returns message only once
* Producer API: An option to write raw data to core filesystem directly
* Consumer/Producer API - packages for Debian 11.1
* Consumer/Producer API - dropped Python 2 support for wheels and packages for new Debian/CentOS versions
## 21.09.0
......
......@@ -33,7 +33,17 @@ else()
SET (ASAPO_VERSION_DOCKER_SUFFIX "-dev")
string(REPLACE "_" "-" ASAPO_VERSION ${ASAPO_VERSION})
SET (ASAPO_VERSION 100.0.${ASAPO_VERSION})
SET (PYTHON_ASAPO_VERSION ${ASAPO_VERSION})
if (${BRANCH} STREQUAL "develop")
SET (PYTHON_ASAPO_VERSION 100.0.dev0)
else()
string(SUBSTRING ${ASAPO_VERSION} 20 -1 TMP)
string(REGEX MATCH "^([0-9]+)|.+$" ISSUE_NUM "${TMP}")
if (ISSUE_NUM STREQUAL "")
SET (PYTHON_ASAPO_VERSION 100.0.dev1)
else()
SET (PYTHON_ASAPO_VERSION 100.0.dev${ISSUE_NUM})
endif()
endif()
SET (ASAPO_WHEEL_VERSION ${ASAPO_VERSION})
endif()
......
......@@ -22,7 +22,7 @@ set(ConfigPackageLocation lib/cmake/Asapo)
# options
option(BUILD_PYTHON "Build python libs" ON)
option(BUILD_PYTHON2_PACKAGES "Build python2 packages" ON)
option(BUILD_PYTHON2_PACKAGES "Build python2 packages" OFF)
option(BUILD_CLIENTS_ONLY "Build clients only" OFF)
......
#!/usr/bin/env bash
cd /asapo/build
cmake \
-DCMAKE_BUILD_TYPE="Release" \
-DENABLE_LIBFABRIC=ON \
......@@ -15,6 +16,12 @@ cmake \
make -j 4
make package
if [ $OS == "el7" ]; then
BUILD_PYTHON2_PACKAGES=ON
else
BUILD_PYTHON2_PACKAGES=OFF
fi
#switch to static curl for Python packages
rm CMakeCache.txt
cmake \
......@@ -26,6 +33,7 @@ cmake \
-DBUILD_PYTHON=ON \
-DPACKAGE_RELEASE_SUFFIX=1.$OS \
-DBUILD_PYTHON_PACKAGES="source;rpm" \
-DBUILD_PYTHON2_PACKAGES=$BUILD_PYTHON2_PACKAGES \
-DBUILD_PYTHON_DOCS=$BUILD_PYTHON_DOCS \
..
make -j 1
......
......@@ -2,7 +2,7 @@
mkdir -p $1
cd $1
wget https://curl.haxx.se/download/curl-7.58.0.tar.gz
wget --no-check-certificate https://curl.haxx.se/download/curl-7.58.0.tar.gz
tar xzf curl-7.58.0.tar.gz
cd curl-7.58.0
./configure --without-ssl --disable-shared --disable-manual --disable-ares \
......
......@@ -25,13 +25,12 @@ else
BUILD_PYTHON_DOCS=OFF
fi
if [ "$OS" = "debian11.1" ]; then
BUILD_PYTHON2_PACKAGES=OFF
else
if [ $OS == "debian9.13" -o $OS == "debian10.7" -o $OS == "ubuntu16.04" -o $OS == "ubuntu18.04" ]; then
BUILD_PYTHON2_PACKAGES=ON
else
BUILD_PYTHON2_PACKAGES=OFF
fi
#switch to static curl for Python packages
rm CMakeCache.txt
cmake \
......
......@@ -2,7 +2,7 @@
mkdir -p $1
cd $1
wget https://curl.haxx.se/download/curl-7.58.0.tar.gz
wget --no-check-certificate https://curl.haxx.se/download/curl-7.58.0.tar.gz
tar xzf curl-7.58.0.tar.gz
cd curl-7.58.0
./configure --without-ssl --disable-shared --disable-manual --disable-ares \
......
FROM quay.io/pypa/manylinux2010_x86_64
FROM quay.io/pypa/manylinux2010_x86_64:2021-04-05-a6ea1ab
ENV GOPATH /tmp
......
......@@ -2,14 +2,13 @@
set -e
declare -A numpy_versions
numpy_versions[cp27mu]=1.12.1
numpy_versions[cp27m]=1.12.1
numpy_versions[cp35m]=1.12.1
numpy_versions[cp36m]=1.12.1
numpy_versions[cp37m]=1.14.5
numpy_versions[cp38]=1.17.3
numpy_versions[cp39]=1.19.3
for python_path in /opt/python/cp{27,35,36,37,38}*; do
for python_path in /opt/python/cp{35,36,37,38,39}*; do
python_version=$(basename $python_path)
python_version=${python_version#*-}
python=$python_path/bin/python
......@@ -23,6 +22,7 @@ for python_path in /opt/python/cp{27,35,36,37,38}*; do
-DBUILD_CLIENTS_ONLY=ON \
-DLIBCURL_DIR=/curl -DPython_EXECUTABLE=$python \
-DBUILD_PYTHON_PACKAGES=source \
-DBUILD_PYTHON2_PACKAGES=OFF \
-DNUMPY_VERSION=$numpy_version ..
cd /asapo/build/consumer/api/python/dist_linux \
&& $pip install -r ../dev-requirements.txt \
......
......@@ -3,8 +3,8 @@
#docker build -t yakser/asapo-env:manylinux2010_ .
#./docker-squash yakser/asapo-env:manylinux2010_ -t yakser/asapo-env:manylinux2010
docker build -t yakser/asapo-env:manylinux2010 .
docker push yakser/asapo-env:manylinux2010
docker build -t yakser/asapo-env:manylinux2010-2021-04-05-a6ea1ab .
docker push yakser/asapo-env:manylinux2010-2021-04-05-a6ea1ab
......@@ -2,7 +2,7 @@
mkdir -p $1
cd $1
wget https://curl.haxx.se/download/curl-7.58.0.tar.gz
wget --no-check-certificate https://curl.haxx.se/download/curl-7.58.0.tar.gz
tar xzf curl-7.58.0.tar.gz
cd curl-7.58.0
./configure --without-ssl --disable-shared --disable-manual --disable-ares \
......
#!/usr/bin/env bash
pip3 install --user --trusted-host nims.desy.de --find-links=http://nims.desy.de/extra/asapo/linux_wheels asapo_producer==100.0.develop
pip3 install --user --trusted-host nims.desy.de --find-links=http://nims.desy.de/extra/asapo/linux_wheels asapo_consumer==100.0.develop
pip3 install --user --trusted-host nims.desy.de --find-links=http://nims.desy.de/extra/asapo/linux_wheels asapo_producer==100.0.dev0
pip3 install --user --trusted-host nims.desy.de --find-links=http://nims.desy.de/extra/asapo/linux_wheels asapo_consumer==100.0.dev0
# you might need to update pip if the above commands error: pip3 install --upgrade pip
# if that does not work (abi incompatibility, etc) you may try to install source packages
# take a look at http://nims.desy.de/extra/asapo/linux_packages/ or http://nims.desy.de/extra/asapo/windows10 for your OS. E.g. for Debian 10.7
# wget http://nims.desy.de/extra/asapo/linux_packages/debian10.7/asapo_producer-100.0.develop.tar.gz
# wget http://nims.desy.de/extra/asapo/linux_packages/debian10.7/asapo_consumer-100.0.develop.tar.gz
# wget http://nims.desy.de/extra/asapo/linux_packages/debian10.7/asapo_producer-100.0.dev0.tar.gz
# wget http://nims.desy.de/extra/asapo/linux_packages/debian10.7/asapo_consumer-100.0.dev0.tar.gz
# pip3 install asapo_producer-100.0.develop.tar.gz
# pip3 install asapo_consumer-100.0.develop.tar.gz
# pip3 install asapo_producer-100.0.dev0.tar.gz
# pip3 install asapo_consumer-100.0.dev0.tar.gz
......@@ -2,8 +2,8 @@
# you can also install Linux/Windows packages if you have root access (or install locally).
# take a look at http://nims.desy.de/extra/asapo/linux_packages/ or http://nims.desy.de/extra/asapo/windows10 for your OS. E.g. for Debian 10.7
wget http://nims.desy.de/extra/asapo/linux_packages/debian10.7/python-asapo-producer_100.0~develop-debian10.7_amd64.deb
wget http://nims.desy.de/extra/asapo/linux_packages/debian10.7/python-asapo-consumer_100.0~develop-debian10.7_amd64.deb
wget http://nims.desy.de/extra/asapo/linux_packages/debian10.7/python-asapo-producer_100.0~dev0-debian10.7_amd64.deb
wget http://nims.desy.de/extra/asapo/linux_packages/debian10.7/python-asapo-consumer_100.0~dev0-debian10.7_amd64.deb
sudo apt install ./python3-asapo-producer_100.0~develop-debian10.7_amd64.deb
sudo apt install ./python3-asapo_consumer_100.0~develop-debian10.7_amd64.deb
sudo apt install ./python3-asapo-producer_100.0~dev0-debian10.7_amd64.deb
sudo apt install ./python3-asapo_consumer_100.0~dev0-debian10.7_amd64.deb
......@@ -38,8 +38,9 @@ for file in $(find ./${VERSIONED_EXAMPLES} -type f)
do
ed -s $file <<ED_COMMANDS > /dev/null 2>&1
,s/asapo-cluster-dev:100\.0\.develop/asapo-cluster:${DOCS_VERSION}/g
,s/==100\.0\.develop/==${VERSION_FOR_PIP}/g
,s/==100\.0\.dev0/==${VERSION_FOR_PIP}/g
,s/100\.0[~.]develop/${DOCS_VERSION}/g
,s/100\.0[~.]dev0/${DOCS_VERSION}/g
w
ED_COMMANDS
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment