KeithTheEE / scipy-cluster

Automatically exported from code.google.com/p/scipy-cluster
Other
0 stars 0 forks source link

patch for duplicate directories in sys.path #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. python setup.py build with duplicate directories in sys.path

What is the expected output? What do you see instead?
$ python setup.py build
There are several valid include directories containing numpy/arrayobject.h

Traceback (most recent call last):
  File "setup.py", line 36, in <module>
    s = input('Selection [default=1]:' % s)
TypeError: not all arguments converted during string formatting

What version of the product are you using? On what operating system?
Mac OSX

Please provide any additional information below.

adding the following line to setup.py avoids this issue:

valid_paths = dict(map(lambda i: (i,1),valid_paths)).keys()

Original issue reported on code.google.com by peter.sk...@gmail.com on 10 Oct 2008 at 5:44

GoogleCodeExporter commented 8 years ago

Original comment by damian.e...@gmail.com on 16 Jan 2010 at 7:21