You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by as...@apache.org on 2022/11/03 01:00:20 UTC
[qpid-proton] branch main updated: PROTON-2645: Allow pip to install python binding on Windows
This is an automated email from the ASF dual-hosted git repository.
astitcher pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git
The following commit(s) were added to refs/heads/main by this push:
new 3f13a38e0 PROTON-2645: Allow pip to install python binding on Windows
3f13a38e0 is described below
commit 3f13a38e0648a1dc19d94ea88bde387f750752f7
Author: Andrew Stitcher <as...@apache.org>
AuthorDate: Wed Nov 2 20:56:04 2022 -0400
PROTON-2645: Allow pip to install python binding on Windows
The issue seems to be that the python setup.py uses absolute paths to
refer to the C source that is being compiled and these long paths get
propagated to the compiler to refer to the files. In some configurations
the absolute path is too long for the system limits on path length and
the compile fails.
This fix attempts to construct a much shorter relative path to the files
to compile and so not fall foul of the path length restrictions.
---
python/setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python/setup.py b/python/setup.py
index 5e7d07224..c6f7c2b54 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -54,7 +54,7 @@ class BuildExtension(build_ext):
setup_path = os.path.dirname(os.path.realpath(__file__))
base = self.get_finalized_command('build').build_base
build_include = os.path.join(base, 'include')
- proton_base = os.path.abspath(os.path.join(setup_path))
+ proton_base = os.path.relpath(setup_path)
proton_src = os.path.join(proton_base, 'src')
proton_core_src = os.path.join(proton_base, 'src', 'core')
proton_include = os.path.join(proton_base, 'include')
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org