提交 55fc534a 编写于 作者: O Olli-Pekka Heinisuo

multiple fixes

上级 75bbcf68
......@@ -643,7 +643,7 @@ jobs:
before_install: |
set -e
if [ -z "$SDIST" ]; then
if [ -n "$SDIST" ]; then
echo "sdist build"
else
# Check out and prepare the source
......@@ -687,7 +687,9 @@ install: |
# Build and package
set -x
if [ -z "$SDIST" ]; then
if [ -n "$SDIST" ]; then
python -m pip install --upgrade pip
python -m pip install scikit-build
python setup.py sdist
else
build_wheel $REPO_DIR $PLAT
......@@ -699,7 +701,7 @@ script: |
# Install and run tests
set -x
if [ -z "$SDIST" ]; then
if [ -n "$SDIST" ]; then
echo "sdist"
else
install_run $PLAT && rc=$? || rc=$?
......@@ -753,7 +755,7 @@ after_success: |
pip install --user twine
pip install --user --upgrade six
if [ -z "$SDIST" ]; then
if [ -n "$SDIST" ]; then
twine upload -u ${USER} -p ${PASS} --skip-existing ${TRAVIS_BUILD_DIR}/dist
else
twine upload -u ${USER} -p ${PASS} --skip-existing ${TRAVIS_BUILD_DIR}/wheelhouse/opencv*
......@@ -768,7 +770,7 @@ after_success: |
/usr/bin/python -m pip install --user -U pip
/usr/bin/python -m pip install --user -U -I twine
if [ -z "$SDIST" ]; then
if [ -n "$SDIST" ]; then
/usr/bin/python -m upload -u ${USER} -p ${PASS} --skip-existing ${TRAVIS_BUILD_DIR}/dist
else
/usr/bin/python -m upload -u ${USER} -p ${PASS} --skip-existing ${TRAVIS_BUILD_DIR}/wheelhouse/opencv*
......@@ -788,7 +790,7 @@ after_success: |
az storage container create -n ${TRAVIS_COMMIT} --public-access blob
if [ -z "$SDIST" ]; then
if [ -n "$SDIST" ]; then
az storage blob upload-batch -d ${TRAVIS_COMMIT} -s ${TRAVIS_BUILD_DIR}/dist --pattern *.gz
else
az storage blob upload-batch -d ${TRAVIS_COMMIT} -s ${TRAVIS_BUILD_DIR}/wheelhouse --pattern *.whl
......
......@@ -3,6 +3,7 @@ include LICENSE.txt
include README.md
include find_version.py
include setup.py
include pyproject.toml
recursive-include cv2 *
recursive-include docker *
recursive-include opencv *
......
......@@ -141,7 +141,7 @@ build_script:
- cmd: |
"%PYTHON%/python.exe" -m pip install --upgrade pip
"%PYTHON%/python.exe" -m pip install --upgrade setuptools
"%PYTHON%/python.exe" setup.py bdist_wheel
"%PYTHON%/python.exe" -m pip wheel . --no-build-isolation --verbose
before_test:
- ps: |
......
[build-system]
requires = ["setuptools", "wheel", "scikit-build", "cmake"]
\ No newline at end of file
requires = [
"setuptools", "wheel", "scikit-build", "cmake", "pip",
"numpy==1.11.3; python_version=='3.5'",
"numpy==1.13.3; python_version=='3.6'",
"numpy==1.14.5; python_version=='3.7'",
"numpy==1.17.3; python_version>='3.8'"
]
\ No newline at end of file
......@@ -15,13 +15,13 @@ def main():
# These are needed for source fetching
cmake_source_dir = "opencv"
minimum_supported_numpy = "1.11.1"
minimum_supported_numpy = "1.13.1"
build_contrib = get_build_env_var_by_name("contrib")
# headless flag to skip GUI deps if needed
build_headless = get_build_env_var_by_name("headless")
if sys.version_info[:2] >= (3, 6):
minimum_supported_numpy = "1.11.3"
minimum_supported_numpy = "1.13.3"
if sys.version_info[:2] >= (3, 7):
minimum_supported_numpy = "1.14.5"
if sys.version_info[:2] >= (3, 8):
......@@ -176,7 +176,6 @@ def main():
packages=packages,
package_data=package_data,
maintainer="Olli-Pekka Heinisuo",
include_package_data=True,
ext_modules=EmptyListWithLength(),
install_requires=numpy_version,
classifiers=[
......
......@@ -14,7 +14,7 @@ function bdist_wheel_cmd {
# copied from multibuild's common_utils.sh
# add osx deployment target so it doesnt default to 10.6
local abs_wheelhouse=$1
python setup.py bdist_wheel $BDIST_PARAMS
pip wheel . --no-build-isolation --verbose $BDIST_PARAMS
cp dist/*.whl $abs_wheelhouse
if [ -n "$USE_CCACHE" -a -z "$BREW_BOOTSTRAP_MODE" ]; then ccache -s; fi
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册