Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Richard 祝发兴 - -IT
opencv-python
提交
a13313c8
O
opencv-python
项目概览
Richard 祝发兴 - -IT
/
opencv-python
与 Fork 源项目一致
Fork自
OpenCV / opencv-python
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
opencv-python
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a13313c8
编写于
3月 05, 2017
作者:
O
Olli-Pekka Heinisuo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add support for new package, contrib modules seem to be working now with static build on Windows
上级
c4c52ca4
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
33 addition
and
11 deletion
+33
-11
appveyor.yml
appveyor.yml
+1
-2
deploy.cmd
deploy.cmd
+13
-0
setup.py
setup.py
+19
-9
未找到文件。
appveyor.yml
浏览文件 @
a13313c8
...
...
@@ -121,5 +121,4 @@ artifacts:
name
:
wheels
deploy_script
:
-
cd %APPVEYOR_BUILD_FOLDER%
-
if "%APPVEYOR_REPO_TAG%"=="true" ("%PYTHON%/python.exe" -m twine upload -u %USER% -p %PASS% --skip-existing dist/opencv*) else (echo "Tag not set, deployment skipped.")
-
deploy.cmd
\ No newline at end of file
deploy.cmd
0 → 100644
浏览文件 @
a13313c8
cd
%APPVEYOR_BUILD_FOLDER%
if
%ENABLE_CONTRIB%
EQU
1
(
echo
"This is contrib build. Deplyoment will be done to to PyPI entry opencv-contrib-python."
if
"
%APPVEYOR_REPO_TAG%
"
==
"true"
(
"
%PYTHON%
/python.exe"
-m
twine
upload
-u
%USER%
-p
%PASS%
--skip-existing
dist
/opencv
*)
else
(
echo
"Tag not set, deployment skipped."
)
)
else
(
echo
"This is default build. Deplyoment will be done to to PyPI entry opencv-python."
if
"
%APPVEYOR_REPO_TAG%
"
==
"true"
(
"
%PYTHON%
/python.exe"
-m
twine
upload
-u
%USER%
-p
%PASS%
--skip-existing
dist
/opencv
*)
else
(
echo
"Tag not set, deployment skipped."
)
)
\ No newline at end of file
setup.py
浏览文件 @
a13313c8
...
...
@@ -5,6 +5,15 @@ import os
import
sys
import
io
contrib_build
=
False
package_name
=
"opencv-python"
if
int
(
os
.
getenv
(
'ENABLE_CONTRIB'
,
0
))
==
1
:
contrib_build
=
True
if
contrib_build
:
package_name
=
"opencv-contrib-python"
long_description
=
""
with
io
.
open
(
'README.rst'
,
encoding
=
"utf-8"
)
as
f
:
...
...
@@ -20,6 +29,14 @@ for package in pip.get_installed_distributions():
if
package
.
key
==
"numpy"
:
numpy_version
=
package
.
version
package_data
=
{}
if
os
.
name
==
'posix'
:
package_data
[
'cv2'
]
=
[
'*.so'
]
else
:
package_data
[
'cv2'
]
=
[
'*.pyd'
,
'*.dll'
]
class
BinaryDistribution
(
Distribution
):
""" Forces BinaryDistribution. """
def
has_ext_modules
(
self
):
...
...
@@ -28,19 +45,12 @@ class BinaryDistribution(Distribution):
def
is_pure
(
self
):
return
False
package_data
=
{}
if
os
.
name
==
'posix'
:
package_data
[
'cv2'
]
=
[
'*.so'
]
else
:
package_data
[
'cv2'
]
=
[
'*.pyd'
,
'*.dll'
]
setup
(
name
=
'opencv-python'
,
setup
(
name
=
package_name
,
version
=
opencv_version
,
url
=
'https://github.com/skvark/opencv-python'
,
license
=
'MIT'
,
description
=
'Wrapper package for OpenCV python bindings.'
,
long_description
=
long_description
,
long_description
=
long_description
,
distclass
=
BinaryDistribution
,
packages
=
[
'cv2'
],
package_data
=
package_data
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录