Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

WIP: testing on windows and conda packages/ wheels for master #5604

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Dec 4, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
BLD: Add a way to influence basedirs with env vars
  • Loading branch information
jankatins committed Dec 3, 2015
commit d53f9027c94ae8b8638a40f47242a8baa46df30b
14 changes: 10 additions & 4 deletions 14 setupext.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,12 @@ def get_base_dirs():
if options['basedirlist']:
return options['basedirlist']

if os.environ.get('MPLBASEDIRLIST'):
return os.environ.get('MPLBASEDIRLIST').split(os.pathsep)

win_bases = ['win32_static', ]
# on windows, we also add the <installdir>\Library of the local interperter, as
# conda installs libs/includes there
# on conda windows, we also add the <installdir>\Library of the local interperter,
# as conda installs libs/includes there
if os.getenv('CONDA_DEFAULT_ENV'):
win_bases.append(os.path.join(os.getenv('CONDA_DEFAULT_ENV'), "Library"))

Expand All @@ -149,8 +152,11 @@ def get_include_dirs():
Returns a list of standard include directories on this platform.
"""
include_dirs = [os.path.join(d, 'include') for d in get_base_dirs()]
include_dirs.extend(
os.environ.get('CPLUS_INCLUDE_PATH', '').split(os.pathsep))
if sys.platform != 'win32':
# gcc includes this dir automatically, so also look for headers in
# these dirs
include_dirs.extend(
os.environ.get('CPLUS_INCLUDE_PATH', '').split(os.pathsep))
return include_dirs


Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.