(merge commit from Andrew Starr-Bochicchio <asb@debian.org>) Running setup.py without LDFLAGS or explicitly passing includes will attempt to use bjam. This causes "python setup.py clean -a" to fail when building the package.
This commit is contained in:
@@ -51,7 +51,7 @@ except:
|
|||||||
ext = None
|
ext = None
|
||||||
packages = None
|
packages = None
|
||||||
|
|
||||||
if '--bjam' in sys.argv or ldflags == None or extra_cmd == None:
|
if '--bjam' in sys.argv:
|
||||||
|
|
||||||
if '--bjam' in sys.argv:
|
if '--bjam' in sys.argv:
|
||||||
del sys.argv[sys.argv.index('--bjam')]
|
del sys.argv[sys.argv.index('--bjam')]
|
||||||
@@ -94,6 +94,7 @@ else:
|
|||||||
source_list = os.listdir(os.path.join(os.path.dirname(__file__), "src"))
|
source_list = os.listdir(os.path.join(os.path.dirname(__file__), "src"))
|
||||||
source_list = [os.path.abspath(os.path.join(os.path.dirname(__file__), "src", s)) for s in source_list if s.endswith(".cpp")]
|
source_list = [os.path.abspath(os.path.join(os.path.dirname(__file__), "src", s)) for s in source_list if s.endswith(".cpp")]
|
||||||
|
|
||||||
|
if extra_cmd:
|
||||||
ext = [Extension('libtorrent',
|
ext = [Extension('libtorrent',
|
||||||
sources = source_list,
|
sources = source_list,
|
||||||
language='c++',
|
language='c++',
|
||||||
|
Submodule simulation/libsimulator updated: dc868f86ca...c82420cd1b
Reference in New Issue
Block a user