You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ariatosca.apache.org by mxmrlv <gi...@git.apache.org> on 2017/04/02 16:25:02 UTC

[GitHub] incubator-ariatosca pull request #93: ARIA-136-ctx-binary-doesnt-get-install...

GitHub user mxmrlv opened a pull request:

    https://github.com/apache/incubator-ariatosca/pull/93

    ARIA-136-ctx-binary-doesnt-get-installed-via-pip-install

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/apache/incubator-ariatosca ARIA-136-ctx-binary-doesnt-get-installed-via-pip-install

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-ariatosca/pull/93.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #93
    
----
commit 6fb177e745c5f706f19daaee596a1f7d0039c38c
Author: max-orlov <ma...@gigaspaces.com>
Date:   2017-04-02T16:24:20Z

    ARIA-136-ctx-binary-doesnt-get-installed-via-pip-install

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-ariatosca pull request #93: ARIA-136-ctx-binary-doesnt-get-install...

Posted by ran-z <gi...@git.apache.org>.
Github user ran-z commented on a diff in the pull request:

    https://github.com/apache/incubator-ariatosca/pull/93#discussion_r109363605
  
    --- 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):
    --- End diff --
    
    who's actually calling this?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-ariatosca pull request #93: ARIA-136-ctx-binary-doesnt-get-install...

Posted by mxmrlv <gi...@git.apache.org>.
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...


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-ariatosca pull request #93: ARIA-136-ctx-binary-doesnt-get-install...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/incubator-ariatosca/pull/93


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-ariatosca pull request #93: ARIA-136-ctx-binary-doesnt-get-install...

Posted by ran-z <gi...@git.apache.org>.
Github user ran-z commented on a diff in the pull request:

    https://github.com/apache/incubator-ariatosca/pull/93#discussion_r109363582
  
    --- 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 --
    
    why not have a base CustomCommand class,
    have all the private functions in it as well,
    and have two subclasses which only set `command`?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---