build-image
build-image copied to clipboard
Allow to skip some dependencies installation
I have a monorepo, where python and react live in same repository.
The root of the repository have yarn.lock and runtime.txt.
The runtime.txt is the one used by Heroku and contains python 3.8.0
. Heroku supports ton of python version while Netlify doesn't.
Since I don't care about the python stuffs whithin the Netlify deployment, I just want the react site to be bild and deployed. So I would like to skip the python dependency setup, to avoid this error:
10:55:48 AM: /usr/local/bin/run-build-functions.sh: line 170: /opt/buildhome/pythonpython-3.8.0/bin/activate: No such file or directory
10:55:48 AM: Error setting python version from runtime.txt
Regards,
+1 !!!!!
same issue I'm using Pelican SSG on Ubuntu 20.04 with Python version 3.8.2.. just deployed to Netlify but am building my website locally, pushing my "output" dir to github and then Netlify just deploys my output directory without building as I was getting errors (even with python 3.7). however I noticed while trying to build remotely (on netlify) a similar error message to @sileht :
12:58:51 PM: /opt/build-bin/run-build-functions.sh: line 164: /opt/buildhome/pythonpython-3.7/bin/activate: No such file or directory
notice the pathname typo.. ??
@defce74 looks like you've tried to set a version of 'python-3.7'. That'll lead to failure like the one you describe. Use 3.7
instead and i bet your build works.
I'd also like to be able to only install dependencies for certain packages in a monorepo. My React Native as well as various backend package dependencies are causing the yarn install to take a lot more time.
This ticket is not about python version, but allowing to skip the python build entirely (as runtime.txt is used by other tools that support all python versions while netlify does not )
+1 this is frustrating to not be able to disable installing dependencies just because Netlify happens to find them. It would be ideal to be able to have the simplest monorepo by having ./ui
and ./api
folders and have the UI deployed to Netlify and not the API.