2

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?

z7sg Ѫ
  • 3,153
  • 1
  • 23
  • 35

1 Answers1

3

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

cfedermann
  • 3,286
  • 19
  • 24
  • I'm currently using the PyCharm evaluation. It says: "package requirement 'memcached' is not satisfied". I can safely ignore this, however. – z7sg Ѫ Apr 19 '12 at 10:56
  • "memcached"? The module name is "memcache"... Feel free to accept the answer if it helped :) – cfedermann Apr 19 '12 at 11:40