build-image icon indicating copy to clipboard operation
build-image copied to clipboard

Allow to skip some dependencies installation

Open sileht opened this issue 4 years ago • 6 comments

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,

sileht avatar Apr 26 '20 09:04 sileht

+1 !!!!!

erans avatar Aug 13 '20 17:08 erans

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 avatar Aug 17 '20 06:08 defce74

@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.

fool avatar Aug 30 '20 12:08 fool

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.

lukeramsden avatar Aug 31 '20 13:08 lukeramsden

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 )

sileht avatar Aug 31 '20 14:08 sileht

+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.

ianstormtaylor avatar Dec 13 '20 02:12 ianstormtaylor