Ticket #104 (accepted defect)

Opened 3 years ago

Last modified 3 years ago

Python package pycrypto is not listed as dependency

Reported by: guest Owned by: ged
Priority: minor Milestone: 0.8
Component: extensions Version: 0.7.1
Keywords: pycrypto, Crypto, elixir.ext.encrypted Cc:

Description

But elixir.ext.encrypted imports Crypto.Cipher. I'm running in a clean virtualenv on OS X 10.5.

Reproduction:

$ mkvirtualenv --no-site-packages --distribute -q example

(example)$ pip -q install elixir

Using already activated environment .../virtualenvs/example

(example)$ python -c "import elixir.ext.encrypted"

Traceback (most recent call last):

File "<string>", line 1, in <module>

File ".../virtualenvs/example/lib/python2.6/site-packages/elixir/ext/encrypted.py", line 35, in <module>

from Crypto.Cipher import Blowfish

ImportError: No module named Crypto.Cipher

(example)$

Change History

Changed 3 years ago by ged

  • owner set to ged
  • priority changed from normal to minor
  • status changed from new to accepted
  • component changed from core to extensions
  • milestone set to 0.8

Well, since this is an extension I don't want to introduce a real dependency, so no matter what your use case will still fail. But I could/should add an "extras_require" clause, as in:


setup(
    name="Project-A",
    ...
    extras_require = {
        'PDF':  ["ReportLab>=1.2", "RXP"],
        'reST': ["docutils>=0.3"],
    }
)

http://peak.telecommunity.com/DevCenter/setuptools#id13

Note: See TracTickets for help on using tickets.