lpcraft conda build plugin should install and run conda-build outside of a conda environment

Bug #1978717 reported by Dan Ryan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lpci
Fix Released
Low
Simone Pelosi

Bug Description

Currently the conda-build plugin creates a conda environment and installs conda-build, python, etc into that environment, activates it, and performs a build. Conda-build itself then creates additional environments in order to perform the build.

For some packages, however, it appears that during the test phase, the initial conda environment is escaped. The packages search for `conda-inspect`, which is provided by conda-build, in order to inspect build artifact linkages, but cannot find this command as it is only installed in the environment.

In order to solve this I propose changing the default behavior of the conda-build plugin to not create an initial environment in the first place, as it does not encapsulate the build anyway. Instead of running `conda create...` we would just run `conda install ...`

Related branches

Revision history for this message
Jürgen Gmach (jugmac00) wrote :

Sounds reasonable.

I am almost EOW (public holiday), so a MP is welcome. Otherwise I will create one next week, but let you review, as you actually use the plugin.

Changed in lpcraft:
status: New → Triaged
importance: Undecided → High
Jürgen Gmach (jugmac00)
Changed in lpcraft:
importance: High → Low
Simone Pelosi (pelpsi)
Changed in lpci:
assignee: nobody → Simone Pelosi (pelpsi)
status: Triaged → In Progress
Simone Pelosi (pelpsi)
Changed in lpci:
status: In Progress → Fix Committed
Simone Pelosi (pelpsi)
Changed in lpci:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.