Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

leverage conda to create the host* packages #655

Closed
cav71 opened this issue Oct 10, 2021 · 1 comment
Closed

leverage conda to create the host* packages #655

cav71 opened this issue Oct 10, 2021 · 1 comment

Comments

@cav71
Copy link

cav71 commented Oct 10, 2021

Is your feature request related to a problem? Please describe.
If I understand the toolchain.py logic, quite few recipes are related to build host* packages (eg. hostpython, host_setuptools, hostlibffi, hostopenssl).
Leveraging conda, this allows to use the most updated ready-to-use host tools for a variety of platform, simplifying the process (and switching to full python3 along the way).

Describe the solution you'd like
This is a walk-through to have a host environment to build the cross compiled python toolchain:

  1. install the conda root (from https://github.com/conda-forge/miniforge)
  2. creates a new conda virtual environment
  3. activate and use the new conda virtual environment
  4. clean it up

Install the conda root (done only once):

curl -L https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-arm64.sh -o conda.sh
sh conda.sh -b -p $(pwd)/host

There are packages for Windows and Linux

Creates a new conda environment
This is the same as python -m venv host/envs/kivy and it is done only once:

export PATH=$(pwd)/host/bin:$PATH
$(pwd)/host/bin/conda create -p $(pwd)/host/envs/kivy python

Activate the new conda environment

source $(pwd)/host/etc/profile.d/conda.sh
conda activate $(pwd)/host/envs/kivy
conda install autoconf automake cython m4 setuptools

Completely clean it up

rm -rf $(pwd)/host
@Julian-O
Copy link
Contributor

There is no call to action here. Closing as not a feature request.

If you think this is in error, please let us know what the requested action is.

@Julian-O Julian-O closed this as not planned Won't fix, can't repro, duplicate, stale Oct 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants