Python setup.py install_requires order

This is the place for queries that don't fit in any of the other categories.

Python setup.py install_requires order

Postby tal » Sun Dec 01, 2013 7:01 pm

I'm trying to deploy Trac on a free hosted virtual server service, which is called OpenShift.

It works fine, see:
https://trac-maxdream.rhcloud.com

The problem is the localization support.
According to TracInstall, Babel should be installed before installing Trac in order to support localization.

The problem is that I can't control on the order that the python packages will be install in setup.py script.
It always installs Trac first, since it's legal(for it, Trac doesn't depend on Babel).

I even tried to add Babel to setup_requires, but after reading the documentation I realize why it doesn't relevant.

Here is my setup.py:
Code: Select all
from setuptools import setup

setup(name='MaxDream Trac',
      version='1.0',
      description='OpenShift App',
      author='Tal',
      author_email='tal_hd@hotmail.com',
      url='http://www.python.org/sigs/distutils-sig/',
      dependency_links=['http://trac.edgewall.org/wiki/TracDev/ReleaseNotes/1.1'],
      setup_requires=['Babel>=0.9.5'],
      install_requires=['Babel>=0.9.5', 'Trac>=1.1'],
     )


Any good solution for this mess?

BTW: Every time I push this setup script the server do a full rebuild, so don't be worry about that.
tal
 
Posts: 3
Joined: Sat Oct 12, 2013 6:23 pm

Return to General Coding Help

Who is online

Users browsing this forum: No registered users and 4 guests