igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] problem running set-test in python-igraph-0.5.2


From: Tamas Nepusz
Subject: Re: [igraph] problem running set-test in python-igraph-0.5.2
Date: Tue, 28 Apr 2009 08:36:51 +0100

Any ideas?  igraph-0.5.2 is (should be) installed OK on this machine.
I am trying to run self-test _without_ installing python-igraph, which is what
setup.py test claims to do.
Hmmmm... that's definitely not what python setup.py test is supposed to do according to the setuptools docs:

"The test command runs a project's unit tests without actually deploying it, by temporarily putting the project's source on sys.path, after first running build_ext -i and egg_info to ensure that any C extensions and project metadata are up-to-date." [1]

It behaves the same on my computer, so either I'm doing something wrong or there's a bug in setuptools (I suspect the former). I will take a closer look at it.

[1] 
http://peak.telecommunity.com/DevCenter/setuptools#test-build-package-and-run-a-unittest-suite

--
T.




address@hidden python-igraph-0.5.2]$ python setup.py test
Include path: /usr/include/igraph
Library path:
running test
running egg_info
writing python_igraph.egg-info/PKG-INFO
writing top-level names to python_igraph.egg-info/top_level.txt
writing dependency_links to python_igraph.egg-info/ dependency_links.txt
reading manifest file 'python_igraph.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'test.py'
warning: no files found matching 'debian/changelog'
warning: no files found matching 'debian/control'
warning: no files found matching 'debian/prepare'
writing manifest file 'python_igraph.egg-info/SOURCES.txt'
running build_ext
copying build/lib.linux-x86_64-2.5/igraph/core.so -> package
Traceback (most recent call last):
 File "setup.py", line 134, in <module>
   'Topic :: Software Development :: Libraries :: Python Modules'
 File "/usr/lib64/python2.5/distutils/core.py", line 151, in setup
   dist.run_commands()
File "/usr/lib64/python2.5/distutils/dist.py", line 974, in run_commands
   self.run_command(cmd)
File "/usr/lib64/python2.5/distutils/dist.py", line 994, in run_command
   cmd_obj.run()
File "build/bdist.linux-i686/egg/setuptools/command/test.py", line 121, in
run
File "build/bdist.linux-i686/egg/setuptools/command/test.py", line 101, in
with_project_on_sys_path
File "build/bdist.linux-i686/egg/setuptools/command/test.py", line 130, in
run_tests
 File "/usr/lib64/python2.5/unittest.py", line 767, in __init__
   self.parseArgs(argv)
 File "/usr/lib64/python2.5/unittest.py", line 794, in parseArgs
   self.createTests()
 File "/usr/lib64/python2.5/unittest.py", line 800, in createTests
   self.module)
File "/usr/lib64/python2.5/unittest.py", line 565, in loadTestsFromNames
   suites = [self.loadTestsFromName(name, module) for name in names]
File "/usr/lib64/python2.5/unittest.py", line 533, in loadTestsFromName
   module = __import__('.'.join(parts_copy))
ImportError: No module named igraph


_______________________________________________
igraph-help mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/igraph-help





reply via email to

[Prev in Thread] Current Thread [Next in Thread]