Commit 565fa252 authored by Michael Davidsaver's avatar Michael Davidsaver

0.1a7

parent d8a75bf2
......@@ -4,7 +4,7 @@ from setuptools import setup, Extension
setup(
name='setuptools_dso',
version="0.1a6",
version="0.1a7",
description="setuptools extension to build non-python shared libraries",
long_description="""setuptools extension for building non-python shared libraries
and packaging them for distribution. eg. for use by python extensions.
......
......@@ -19,16 +19,19 @@ from distutils import log
Distribution.x_dsos = None
def massage_dir_list(bdirs, dirs):
def massage_dir_list(bdirs, indirs):
"""Process a list of directories for use with -I or -L
For relative paths, also include paths relative to a build directory
"""
dirs = dirs or []
indirs = indirs or []
dirs = indirs[:]
for bdir in bdirs:
dirs.extend([os.path.join(bdir, D) for D in dirs if not os.path.isabs(D)])
dirs.extend([os.path.join(bdir, D) for D in indirs if not os.path.isabs(D)])
if os.name == 'nt':
bdir = os.path.dirname(bdir) # strip /Release or /Debug
dirs.extend([os.path.join(bdir, D) for D in dirs if not os.path.isabs(D)])
dirs.extend([os.path.join(bdir, D) for D in indirs if not os.path.isabs(D)])
return list(filter(os.path.isdir, dirs))
def expand_sources(cmd, 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