Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clear setuptools cache in pyramid?

I am pretty new to python and pyramid. I am working on pyramid application that I run with the following command:

pserve development.ini

When I make some changes and restart the server (kill it and run it again) it keeps the old versions of the files in cache.

I have noticed that I can clean the cache by re-installing the application with

python setup.py install

but I am sure that there is a nicer way for this?

I have noticed that the cache files are kept in the build folder:

build/lib.linux-x86_64-2.7/*
like image 898
Martin Taleski Avatar asked Dec 29 '25 00:12

Martin Taleski


1 Answers

Instead of using python setup.py install, use python setup.py develop. This will link your application's directory into the site-packages without creating a separate "installed" source tree.

like image 127
Michael Merickel Avatar answered Dec 31 '25 14:12

Michael Merickel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!