Skip to content

Commit

Permalink
ENH: Added build_requires instead of requiring all for conda
Browse files Browse the repository at this point in the history
  • Loading branch information
richafrank committed Feb 19, 2016
1 parent c998c04 commit 13b909c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion conda/zipline/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ source:
requirements:
build:
- python
{% for req in data.get('install_requires', []) -%}
{% for req in data.get('build_requires', []) -%}
- {{req}}
{% endfor %}
run:
Expand Down
13 changes: 8 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,12 @@ def module_requirements(requirements_path, module_names, strict_bounds):

conda_build = os.path.basename(sys.argv[0]) == 'conda-build'

setup_requires = module_requirements(
'etc/requirements.txt',
('Cython', 'numpy'),
strict_bounds=False,
)

setup(
name='zipline',
version=versioneer.get_version(),
Expand Down Expand Up @@ -252,10 +258,7 @@ def module_requirements(requirements_path, module_names, strict_bounds):
],
install_requires=install_requires(conda_format=conda_build),
extras_require=extras_requires(conda_format=conda_build),
setup_requires=module_requirements(
'etc/requirements.txt',
('Cython', 'numpy'),
strict_bounds=False,
),
setup_requires=setup_requires if not conda_build else [],
build_requires=setup_requires,
url="http://zipline.io",
)

0 comments on commit 13b909c

Please sign in to comment.