You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Ken Giusti (JIRA)" <ji...@apache.org> on 2019/06/11 19:23:00 UTC

[jira] [Updated] (DISPATCH-1364) "make install" does not install qpid_dispatch[_site.py] files in the correct location

     [ https://issues.apache.org/jira/browse/DISPATCH-1364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ken Giusti updated DISPATCH-1364:
---------------------------------
    Description: 
Building and install qdr from source (cmake.... ; make install....) ends up putting qdr's python library modules in the wrong directory (not in the default python search path).

Specifically, these files are incorrectly installed in a "site-packages" sub-directory:

By default ubuntu's python does not use "site-packages" for installing 3rd party python packages - it uses "dist-packages" instead. 

The default python paths in ubuntu are:
{quote}>>> import sys
 >>> sys.path
 ['', '/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', *'/usr/local/lib/python3.6/dist-packages'*, '/usr/lib/python3/dist-packages']
{quote}
 

For example, proton correctly puts its python files in

/usr/local/lib/python3.6/dist-packages/

on ubuntu, while dispatch drops its packages into

/usr/local/lib/python3.6/site-packages/

 

  was:
Building and install qdr from source (cmake.... ; make install....) ends up putting qdr's python library modules in the wrong directory (not in the default python search path).

Specifically, these files are incorrectly installed in /usr/lib/python3.6/site-packages when -DCMAKE_INSTALL_PREFIX=/usr

 

The default python paths in ubuntu are:
{quote}>>> import sys
>>> sys.path
['', '/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', '/usr/local/lib/python3.6/dist-packages', '/usr/lib/python3/dist-packages']
{quote}
 

For example proton puts its python files in

/usr/local/lib/python3.6/dist-packages/

when the same /usr install prefix is used.

 


> "make install" does not install qpid_dispatch[_site.py] files in the correct location
> -------------------------------------------------------------------------------------
>
>                 Key: DISPATCH-1364
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-1364
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.8.0
>            Reporter: Ken Giusti
>            Priority: Major
>             Fix For: 1.9.0
>
>
> Building and install qdr from source (cmake.... ; make install....) ends up putting qdr's python library modules in the wrong directory (not in the default python search path).
> Specifically, these files are incorrectly installed in a "site-packages" sub-directory:
> By default ubuntu's python does not use "site-packages" for installing 3rd party python packages - it uses "dist-packages" instead. 
> The default python paths in ubuntu are:
> {quote}>>> import sys
>  >>> sys.path
>  ['', '/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', *'/usr/local/lib/python3.6/dist-packages'*, '/usr/lib/python3/dist-packages']
> {quote}
>  
> For example, proton correctly puts its python files in
> /usr/local/lib/python3.6/dist-packages/
> on ubuntu, while dispatch drops its packages into
> /usr/local/lib/python3.6/site-packages/
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org