Frage

I depend on the package python-memcached but its name breaks the python naming conventions and consequently it breaks the setup function in core.py.

setup(name='foo',
      version='1.0',
      requires = ['python-memcached','psycopg2']
      )

This breaks setup. How can I depend on the package? Is it possible to rename it locally or create an alias?

War es hilfreich?

Lösung

python-memcached's module name is memcache, hence use:

setup(name='foo',
  version='1.0',
  requires = ['memcache','psycopg2']
)

Hope that helps.

Another alternative would be to use pylibmc instead; more info on the latter it available here http://pypi.python.org/pypi/pylibmc

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top