qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DISPATCH-815) shebang python (#!/usr/bin/env python) gets evaluated on make install
Date Thu, 07 Sep 2017 16:02:00 GMT

    [ https://issues.apache.org/jira/browse/DISPATCH-815?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16157133#comment-16157133
] 

ASF subversion and git services commented on DISPATCH-815:
----------------------------------------------------------

Commit 75ebbd13adb7f86892bc3d7235499272cac9fc3a in qpid-dispatch's branch refs/heads/master
from [~ganeshmurthy]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-dispatch.git;h=75ebbd1 ]

DISPATCH-815 - Excluded qdmanage and qdstat from the call to distutils setup because distutils
munges python shebang. CMake is already handling the installation of these scripts, so there
is no reason to have them here


> shebang python (#!/usr/bin/env python) gets evaluated on make install
> ---------------------------------------------------------------------
>
>                 Key: DISPATCH-815
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-815
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 0.8.0
>            Reporter: Ganesh Murthy
>            Assignee: Ganesh Murthy
>             Fix For: 1.0.0
>
>
> The first line on qdmanage and qdstat python scripts is the python shebang
> {noformat}
> #!/usr/bin/env python
> {noformat}
> When a make install is run from the dispatch build folder, the <install_dir>/bin/qdstat
and <install_dir>/bin/qdmanage python scripts have their python shebang evaluated and
the first line of the scripts look like this - 
> {noformat}
> #!/usr/bin/python
> {noformat}
> This behavior is incorrect.
> Chris Richardson observed the following on the qpid users mailing list - 
> {noformat}
> It seems the problem here is not with CMake but actually with the
> qpid-dispatch code, which has duplicate install routines for the
> qdstat/qdmanager files. One is as Gordon described using
> install(PROGRAMS...) and the other is via the python distutils method using
> <qpid-dispatch>/python/setup.py.in; it is in fact distutils that munges the
> shebang as described and not CMake at all! Removing qdstat/qdmanager from
> setup.py.in fixes the problem.
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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


Mime
View raw message