![]() Mv $SITEPK/README $PKG/usr/doc/python-$VERSION/README.python-tools # We'll install the python-tools under site-packages: #zcat $CWD/patches/ | patch -p1 -verbose -backup -suffix=.orig || exit 1įind. #zcat $CWD/patches/ | patch -p1 -verbose -backup -suffix=.orig || exit 1 Tar xvzf $CWD/Python-$VERSION.tgz || exit 1 # I'll assume that in this case it has been well tested. # Normally I don't trust -O3, but it is the Python default so TOOLSDIR=/usr/lib/python2.5/site-packages SITEPK=$PKG/usr/lib/python2.5/site-packages Below is a Python Slackbuild script derived from Slackware 12.2 source with minor modifications. On the same directory, create this Slackbuild script. First get the Python 2.5.5 source code from the Python’s website and put it somewhere, for example: ~/python-2.5.5. Let’s Build ItĮnough for the overview and let’s get to work. Python 2.5.5 is somewhat like the last release for 2.5.x series so it needs no patch of whatsoever. To make things easy, I look for the Python Slackbuild script from Slackware 12.2 source tree and modifies it a bit since it is for Python 2.5.2 and also contains several security patches. The art of Slackbuilding includes a Slackbuild script that sets at a build environment, configure the source and creates a Slackware package. In Slackware, it is fairly easy to build any supported software however, there is so-called the Slackware way of building packages via Slackbuilds. We can download Python 2.5.5 source from Python’s website. I will install the version 2.5.5 somewhere in /opt leaving the original Python intact. While learning Python in general, I also need the latest stock Python from Slackware since other applications uses it like Frozen Bubble game. Since Google’s App Engine SDK for Python requires or at least more safe when using Python 2.5.x, I have no choice but to install one. After several days of contemplation, I decided to give it a try and installed Python 2.5.5 in parallel with Slackware’s stock Python. All the best.Currently, Slackware 13.37 RC2 has Python 2.6.6 and Google’s App Engine SDK for Python requires Python 2.5.x. If you get stuck I have written a tutorial that covers these steps in more detail. With the development server up and running you can view testapp at localhost:8080. The last line starts the development server. The first line simply copies and renames the new_project_template folder into google_proects as testapp. Python google_appengine/dev_appserver.py testapp cp -r google_appengine/new_project_template testapp Now its time to create the project and start the development server. Here are the terminal commands for the steps above: cd ~ open a terminal Ctr-t and make sure you are in the home directory.Here are the steps I followed to get GAE 1.7.1 working on Ubuntu 12.04. This tutorial describes how to develop and deploy a simple Python 2.7 project with Google App Engine. That requires your usual Google Account’s credentials and the environment is ready to be used instantly. Let us make an ‘Hello World’ application for Google App Engine, using you own Linux Box – excited ? To start using app engine, you have to register an application at To specify the path in the system, you have to edit /home/your_user_name/.profileĪll set & done, now you have the shiny Google App Engine up & running its time to do the real job. ![]() That means as soon as you close the window, the path specified becomes invalid. You can specify the PATH definition in the terminal only using export PATH=$PATH:/home/your_user_name/Desktop/google_appengine/īut path specified using export command is valid as long as you are inside the current terminal window. To complete the installation and to able to run Google App Engine, we must specify its path definition. Extract the zipped file either use the context menu to extract files into a folder.Īfter you finish extracting, you will get a folder google_appengine which has all the necessary files to develop application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |