Replies: 2 comments
-
| There was some previous discussion on #773 | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            -
| This question is only relevant for  For OpenBLAS the problem won't go away. The Linux  | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently using the pypa/cibuildwheel github action to build a wide range of wheels in CI. On macOS it's very complicated to install the requisite compilers (incl. gfortran) to achieve a range of MACOSX_DEPLOYMENT_TARGET, across the two architectures.
The compilers that exist on the github runner images are ok for some matrix entries, but not others. This requires installation of bespoke and repackaged gfortran compilers from a range of places depending on the matrix entry.
What I'd like to do is use the conda-forge
compilerspackage for the entire matrix. conda-forge has all the compilers i need for each of the matrix entries. Otherwise I don't wish to use any conda derived dependency in the build.In a previous step in the CI configuration I can install conda from a bash shell without issues. I install the conda-forge
compilerspackage into the base environment, and everything seems ok.However, for the life of me I can't figure out how to activate and use the base conda env in the pypa/cibuildwheel action.
I experimented with activation commands placed in CIBW_BEFORE_ALL and CIBW_BEFORE_BUILD, but the commands in those environment variables are run with
bash, they're notsourced. Therefore any activation doesn't stick around for theBuilding wheel...step.My questions are:
~/.profile/~/.bashrc/~/.bash_profilein its initialisation of the bash shell? (this is where conda environments are properly initiated when a shell is commenced).bash $CIBW_BEFORE_ALLrather thansource $CIBW_BEFORE_ALL.Beta Was this translation helpful? Give feedback.
All reactions