Commit c51e7b77 authored by Michael Davidsaver's avatar Michael Davidsaver

minor

parent 150979d5
......@@ -34,6 +34,13 @@ def expand_sources(cmd, sources):
cand = os.path.join(cmd.build_temp, src)
if os.path.exists(cand):
sources[i] = cand
continue
if os.name == 'nt':
cand = os.path.join(os.path.dirname(cmd.build_temp), src) # strip /Release or /Debug
if os.path.exists(cand):
sources[i] = cand
continue
raise RuntimeError("Missing source file: %s"%src)
class Extension(_Extension):
def __init__(self, name, sources,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment