StratusLab / client

Command Line Interface (CLI) for StratusLab cloud services
Apache License 2.0
2 stars 1 forks source link

switch to using setuptools #146

Closed loomis closed 5 years ago

loomis commented 10 years ago

Switch to using setuptools for the creation of the pip packages. This has several advantages:

  1. it can be used to generate automatically scripts for all operating systems (Windows included),
  2. it allows "namespace" packages that are merged between different pypi modules, and
  3. it provides a "resource API" to find template and reference configuration files reliably.

This will also make it easier to support the cliff-based style of command line client.

loomis commented 10 years ago

The RPM package does not build correctly when using setuptools. In particular, the command executables are not available. The pip package needs to be used to create the RPM package.

loomis commented 10 years ago

There is a fundamental problem with using setuptools to generate the scripts in that it appears impossible to generate a correct RPM from this. All of the pypi to RPM tools found in google fail and just using the RPM to run pip fails because of conflicts in the dependencies. Is the solution just to drop RPM support for the CLI?