Skip to content

Commit

Permalink
fixes search path to numpy dll's like numpy-atlas.dll
Browse files Browse the repository at this point in the history
  • Loading branch information
MAKOMO committed Apr 2, 2017
1 parent f985300 commit 4368d5b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/setup-win.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
import matplotlib as mpl
import py2exe

import numpy
import sys

import os

INCLUDES = [
Expand Down Expand Up @@ -71,6 +74,18 @@
'c:\Python27\Lib\site-packages\PyQt4\plugins\iconengines\qsvgicon4.dll',
]),
]

def numpy_dll_paths_fix():
paths = set()
np_path = numpy.__path__[0]
for dirpath, _, filenames in os.walk(np_path):
for item in filenames:
if item.endswith('.dll'):
paths.add(dirpath)

sys.path.append(*list(paths))

numpy_dll_paths_fix()

setup(
name ="Tonino",
Expand Down

0 comments on commit 4368d5b

Please sign in to comment.