"setup.py test" should automatically run "setup.py build"

Bug #976171 reported by Sarosh
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Python-Crypto
Fix Committed
Undecided
Unassigned

Bug Description

Hi, newbie to installing modules with python (or working with python in general), so please forgive if this is a misunderstanding on my part. I downloaded the module and ran the setup test script and it came back with a number of errors:

C:\Python32\pycrypto-2.5>setup.py test

running test

Traceback (most recent call last):

File "C:\Python32\pycrypto-2.5\setup.py", line 452, in <module> core.setup(**kw)
File "C:\Python32\lib\distutils\core.py", line 148, in setup dist.run_commands()
File "C:\Python32\lib\distutils\dist.py", line 917, in run_commands self.run_command(cmd)
File "C:\Python32\lib\distutils\dist.py", line 936, in run_command cmd_obj.run()
File "C:\Python32\pycrypto-2.5\setup.py", line 332, in run SelfTest.run(module=moduleObj, verbosity=self.verbose, stream=sys.stdout, config=self.config)
File "build\lib.win32-3.2\Crypto\SelfTest\__init__.py", line 60, in run tests = get_tests(config=config)
File "build\lib.win32-3.2\Crypto\SelfTest\__init__.py", line 79, in get_tests from Crypto.SelfTest import Cipher; tests += Cipher.get_tests(config=config)
File "build\lib.win32-3.2\Crypto\SelfTest\Cipher\__init__.py", line 31, in get_tests from Crypto.SelfTest.Cipher import test_AES; tests += test_AES.get_tests(config=config)
File "build\lib.win32-3.2\Crypto\SelfTest\Cipher\test_AES.py", line 1259, in get_tests from Crypto.Cipher import AES
ImportError: cannot import name AES

would appreciate any help on this.

Sarosh

Revision history for this message
Sebastian Ramacher (s-ramacher) wrote :

I guess this is the same as #1055256, so until this is fixed, run setup.py build first.

Changed in pycrypto:
status: New → Confirmed
summary: - Unable to install on Windows
+ "setup.py test" should automatically run "setup.py build"
Revision history for this message
Darsey Litzenberger (dlitz) wrote :
Changed in pycrypto:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.