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

ASF GitHub Bot commented on ARIA-136:
-------------------------------------

Github user mxmrlv commented on a diff in the pull request:

    https://github.com/apache/incubator-ariatosca/pull/93#discussion_r109371065
  
    --- Diff: setup.py ---
    @@ -63,20 +64,43 @@
     console_scripts = ['aria = aria.cli.cli:main']
     
     
    -class InstallCommand(install):
    -    user_options = install.user_options + [
    +def _generate_user_options(command):
    +    return command.user_options + [
             ('skip-ctx', None, 'Install with or without the ctx (Defaults to 
False)')
         ]
    -    boolean_options = install.boolean_options + ['skip-ctx']
     
    -    def initialize_options(self):
    -        install.initialize_options(self)
    -        self.skip_ctx = False
     
    -    def run(self):
    -        if self.skip_ctx is False:
    -            console_scripts.append('ctx = 
aria.orchestrator.execution_plugin.ctx_proxy.client:main')
    -        install.run(self)
    +def _generate_boolean_options(command):
    +    return command.boolean_options + ['skip-ctx']
    +
    +
    +def _initialize_options(custom_cmd):
    +    custom_cmd.command.initialize_options(custom_cmd)
    +    custom_cmd.skip_ctx = False
    +
    +
    +def _run(custom_cmd):
    +    if custom_cmd.skip_ctx is False:
    +        console_scripts.append('ctx = 
aria.orchestrator.execution_plugin.ctx_proxy.client:main')
    +    custom_cmd.command.run(custom_cmd)
    +
    +
    +class InstallCommand(install):
    --- End diff --
    
    Thats where is was coming from at first. But the problem is with the class 
attributes...


> ctx binary doesn't get installed via pip install
> ------------------------------------------------
>
>                 Key: ARIA-136
>                 URL: https://issues.apache.org/jira/browse/ARIA-136
>             Project: AriaTosca
>          Issue Type: Bug
>            Reporter: Ran Ziv
>            Assignee: Maxim Orlov
>            Priority: Minor
>
> the ctx binary is conditionally installed in {{setup.py}}, but it would seem 
> the {{pip install}} command does not install it as intended when installing 
> in editable mode ({{-e}} option)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to