[
https://issues.apache.org/jira/browse/PROTON-2126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16959480#comment-16959480
]
ASF GitHub Bot commented on PROTON-2126:
----------------------------------------
jdanekrh commented on pull request #200: PROTON-2126 Fix Appveyor CI build
URL: https://github.com/apache/qpid-proton/pull/200
Previously, the build would fail when installing setuptools and tox:
```
pip install --user setuptools tox
Traceback (most recent call last):
File "c:\python27\lib\runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "c:\python27\lib\runpy.py", line 72, in _run_code
exec code in run_globals
File "C:\Python27\Scripts\pip.exe\__main__.py", line 9, in <module>
TypeError: 'module' object is not callable
Command exited with code 1
```
* Use pip systemwide, not with --user flag
* Use explicit Appveyor image versions in build matrix
* Install VC 9.0, because Python 2.7 needs it
https://www.appveyor.com/docs/windows-images-software/
https://wiki.python.org/moin/WindowsCompilers#Microsoft_Visual_C.2B-.2B-_9.0_standalone:_Visual_C.2B-.2B-_Compiler_for_Python_2.7_.28x86.2C_x64.29
* Don't try detecting sasl on Windows, because MSBuild would fail the py
wheel build
* Build also with Python 3.7 x64 to check that is possible
* Fix bad indent in setup.py.in
* Use os.makedirs in setup.py.in, to avoid failue:
```
Error [WinError 3]
The system cannot find the path specified:
'build\\temp.win-amd64-3.7\\Release\\srcs'
py_pkg_wheel
C:\Users\Administrator\qpid-proton\build\python\CUSTOMBUILD 1
```
* Install wheel with pip
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Appveyor: pip install --user setuptools tox: `exec code in run_globals` File
> "C:\Python27\Scripts\pip.exe\__main__.py", line 9, in <module> TypeError:
> 'module' object is not callable Command exited with code 1
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: PROTON-2126
> URL: https://issues.apache.org/jira/browse/PROTON-2126
> Project: Qpid Proton
> Issue Type: Bug
> Components: build
> Affects Versions: proton-c-0.30.0
> Reporter: Jiri Daněk
> Priority: Major
>
> All Proton Appveyor CI builds are failing with the following error.
> {noformat}
> $ pip install --user --upgrade pip
> Collecting pip
> Downloading
> https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl
> (1.4MB)
> Installing collected packages: pip
> Successfully installed pip-19.3.1
> You are using pip version 18.1, however version 19.3.1 is available.
> You should consider upgrading via the 'python -m pip install --upgrade pip'
> command.
> pip install --user setuptools tox
> Traceback (most recent call last):
> File "c:\python27\lib\runpy.py", line 174, in _run_module_as_main
> "__main__", fname, loader, pkg_name)
> File "c:\python27\lib\runpy.py", line 72, in _run_code
> exec code in run_globals
> File "C:\Python27\Scripts\pip.exe\__main__.py", line 9, in <module>
> TypeError: 'module' object is not callable
> Command exited with code 1
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]