Skip to content

Commit

Permalink
BLD: Use build_requires with conda build
Browse files Browse the repository at this point in the history
  • Loading branch information
richafrank committed Feb 19, 2016
1 parent 92b6fe8 commit 64b4334
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion conda/zipline/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ source:
requirements:
build:
- python
{% for req in data.get('setup_requires', []) -%}
{% for req in data.get('build_requires', []) -%}
- {{req}}
{% endfor %}
run:
Expand Down
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ def extras_requires(conda_format=False):
}


def module_requirements(requirements_path, module_names, strict_bounds):
def module_requirements(requirements_path, module_names, strict_bounds,
conda_format=False):
module_names = set(module_names)
found = set()
module_lines = []
Expand All @@ -219,6 +220,8 @@ def module_requirements(requirements_path, module_names, strict_bounds):
name = match.group(1)
if name in module_names:
found.add(name)
if conda_format:
line = _conda_format(line)
module_lines.append(line)

if found != module_names:
Expand All @@ -232,7 +235,8 @@ def module_requirements(requirements_path, module_names, strict_bounds):
setup_requires = module_requirements(
'etc/requirements.txt',
('Cython', 'numpy'),
strict_bounds=False,
strict_bounds=conda_build,
conda_format=conda_build,
)

setup(
Expand Down

0 comments on commit 64b4334

Please sign in to comment.