I'm trying to add a python function to IBM Cloud.
I use scrapy library and requests, thus following the docs I need to create a .zip
file with __main__.py
, helpers.py
files and virtualenv
.
I did it with
zip -r test.zip __main__.py helper.py virtualenv
And the zip file is created, but the problem is that the file to big is and I can't upload it to IBM. I asked about it here.
Those two .py
files (__main__.py helper.py
) are very small, thus the problem is in virtualenv
. I need to compress it or do something to decrease the size of it.
I've created it with:
virtualenv virtualenv
It installed default dependencies. And I've installed two extra libraries with pip
, thus:
pip install requests==2.18.4
pip install Scrapy==1.5.0
I need those two.
With that virtualenv
the created zip file is too big.
I know that that the problem is, because if I create a .zip
file without virtualenv
it uploads without problems.
Thus is there any way to decrease the size or to solve my problem and to be able to upload it to IBM?