Child pages
  • Python Migration

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Use available RPM packages first. For example: Use python-flask as it is available in the standard repo.
  2. For Pegasus we currently do `python setup.py clean --all install_lib -d ${dist.python-lib}`, which is equivalent to `pip install --prefix <dir> --no-deps .`
  3. For packages not available as RPM, like python-pika, we could take one of the following approaches,
    1. We could convert pika into RPM/DEB using snippet below
    2. pip install --prefix <dir> --no-deps pika # It gets installed in the same manner as Pegasus.
    3. We could convert pika into RPM/DEB using snippet belowInstall using pip in RPM's pre/post install hooks
  4. For binary tarballs, we would just execute `pip install --prefix <dir> .` # . <src>` <src> means lib/pegasus/python. All Python packages dependencies will be installed from PyPi.

...