fixed issue 1581
Handle condition where Param.parameters was set
Keep track whether parameters was explicitly set
Co-authored-by: Marc Skov Madsen <masma@orsted.dk> Co-authored-by: Philipp Rudiger <prudiger@anaconda.com>
1 |
import os |
|
2 |
if "PYCTDEV_ECOSYSTEM" not in os.environ: |
|
3 |
os.environ["PYCTDEV_ECOSYSTEM"] = "conda" |
|
4 |
|
|
5 |
from pyctdev import * # noqa: api |
|
6 |
|
|
7 |
def task_pip_on_conda(): |
|
8 |
"""Experimental: provide pip build env via conda"""
|
|
9 |
return {'actions':[ |
|
10 |
# some ecosystem=pip build tools must be installed with conda when using conda...
|
|
11 |
'conda install -y pip twine wheel', |
|
12 |
# ..and some are only available via conda-forge
|
|
13 |
'conda install -y -c conda-forge tox virtualenv', |
|
14 |
]}
|
|
15 |
|
|
16 |
|
|
17 |
def _build_dev(channel): |
|
18 |
channels = " ".join(['-c %s' % c for c in channel]) |
|
19 |
return "conda build %s conda.recipe/ --build-only" % channels |
Read our documentation on viewing source code .