ubuntu - Upgrade pyramid, SQLAlchemy, zope and rebuild Python project -


i have inherited python rest api runs on ubuntu.

my main goal update these python components latest releases, e.g. zope @ 2.0.

it uses python 2.7, pyramid 1.4.1, zope 0.6, transaction 1.3, sqlalchemy 0.7.9, weberror 0.10.3, , uses nginx web server. oh, , uses cx_oracle connect oracle instance.

the project (and other items) in folder called rest_api, can see setup.py, , other custom setups, setup_prod.py, etc.

i went /usr/local/lib/python-2.7/sites-packages , tried running "pip install --upgrade [package_name]" , command completes each package.

is need do, or have rebuild project setup*.py?

i found notes showed 2 commands want -

rebuild_cmd = "cd %s/python/rest_api/; /usr/bin/env python setup_prod.py build" % current_dir install_cmd = "cd %s/python/rest_api/; sudo /usr/bin/env python setup_prod.py install" % current_dir 

...but when try running "python setup_prod.py build" directory, or without sudo, traceback error.

to summarize -

  1. how upgrade python packages zope, sqlalchemy, pyramids, etc. latest release?

  2. do need rebuild project if upgrading python packages above?

  3. without knowing program details, there "basic" python build sequence can try, e.g. run setup.py build, setup.py install, or else?

it uses python 2.7, pyramid 1.4.1, zope 0.6, transaction 1.3, sqlalchemy 0.7.9, weberror 0.10.3

how know this? find place of these versions mentioned (i guess should mentioned somewhere in setup_prod.py), change them want, build project , check if app works new dependencies.

...but when try running "python setup_prod.py build" directory, or without sudo, traceback error.

please show traceback.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -