Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Richard 祝发兴 - -IT
opencv-python
提交
b80a78ea
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,发现更多精彩内容 >>
提交
b80a78ea
编写于
5月 16, 2016
作者:
O
Olli-Pekka Heinisuo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix package name, find OpenCV version from sources
上级
17b4052a
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
25 addition
and
17 deletion
+25
-17
appveyor.yml
appveyor.yml
+8
-8
setup.py
setup.py
+17
-9
未找到文件。
appveyor.yml
浏览文件 @
b80a78ea
...
...
@@ -43,38 +43,38 @@ build_script:
xcopy "%APPVEYOR_BUILD_FOLDER%\opencv\build\lib\RELEASE\*.pyd" cv2
C:\Python27\python.exe setup.py bdist_wheel
--opencv-version 0.0.0
C:\Python27\python.exe setup.py bdist_wheel
del cv2\*.pyd
xcopy "%APPVEYOR_BUILD_FOLDER%\opencv\build64\lib\RELEASE\*.pyd" cv2
C:\Python27-x64\python.exe setup.py bdist_wheel
--opencv-version 0.0.0
C:\Python27-x64\python.exe setup.py bdist_wheel
del cv2\*.pyd
xcopy "%APPVEYOR_BUILD_FOLDER%\opencv\build\lib\python3\Release\*.pyd" cv2
C:\Python35\python.exe setup.py bdist_wheel
--opencv-version 0.0.0
C:\Python35\python.exe setup.py bdist_wheel
del cv2\*.pyd
xcopy "%APPVEYOR_BUILD_FOLDER%\opencv\build64\lib\python3\Release\*.pyd" cv2
C:\Python35-x64\python.exe setup.py bdist_wheel
--opencv-version 0.0.0
C:\Python35-x64\python.exe setup.py bdist_wheel
del cv2\*.pyd
before_test
:
-
cmd
:
>-
C:\Python27\Scripts\pip.exe install --no-index --find-links=dist
cv2
C:\Python27\Scripts\pip.exe install --no-index --find-links=dist
opencv-python
C:\Python27-x64\Scripts\pip.exe install --no-index --find-links=dist
cv2
C:\Python27-x64\Scripts\pip.exe install --no-index --find-links=dist
opencv-python
C:\Python35\Scripts\pip.exe install --no-index --find-links=dist
cv2
C:\Python35\Scripts\pip.exe install --no-index --find-links=dist
opencv-python
C:\Python35-x64\Scripts\pip.exe install --no-index --find-links=dist
cv2
C:\Python35-x64\Scripts\pip.exe install --no-index --find-links=dist
opencv-python
test_script
:
-
cmd
:
>-
...
...
setup.py
浏览文件 @
b80a78ea
...
...
@@ -11,17 +11,25 @@ for package in pip.get_installed_distributions():
if
package
.
key
==
"numpy"
:
numpy_version
=
package
.
version
# Get OpenCV version from command line args
opencv_version
=
""
# dig the version from OpenCV sources
version_file_path
=
"opencv/modules/core/include/opencv2/core/version.hpp"
with
open
(
version_file_path
,
'r'
)
as
f
:
for
line
in
f
:
words
=
line
.
split
()
if
"CV_VERSION_MAJOR"
in
words
:
opencv_version
+=
words
[
2
]
opencv_version
+=
"."
if
"CV_VERSION_MINOR"
in
words
:
opencv_version
+=
words
[
2
]
opencv_version
+=
"."
if
"CV_VERSION_REVISION"
in
words
:
opencv_version
+=
words
[
2
]
# a bit hacky...
if
"--opencv-version"
in
sys
.
argv
:
index
=
sys
.
argv
.
index
(
'--opencv-version'
)
sys
.
argv
.
pop
(
index
)
opencv_version
=
sys
.
argv
.
pop
(
index
)
else
:
print
(
"Error: no version info (--opencv-version missing), exiting."
)
exit
(
1
)
class
BinaryDistribution
(
Distribution
):
""" Forces BinaryDistribution. """
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录