Thanks for the replies, i did compile stackless myself and i have got it
working now.

(Centos is derived from RedHat)

For future reference: i currently use the following scripts:

For installation:
---------------------------------------------------------
#!/bin/bash

#required linux libraries
yum -y groupinstall "Development tools"

yum -y install zlib-devel
yum -y install bzip2-devel
yum -y install openssl-devel
yum -y install ncurses-devel
yum -y install sqlite-devel

#download & decompress
cd /tmp
wget http://www.stackless.com/binaries/stackless-278-export.tar.bz2
tar jxvf stackless-278-export.tar.bz2

#compile & install
cd stackless-278-export
./configure --prefix=/usr/local
make all
sudo make altinstall

#installing virtualenv
pip install virtualenv
---------------------------------------------------------

And for creating a virtual environment (one argument: environment name):
---------------------------------------------------------
#!/bin/bash

target="/home/lars/pyenv/$1"
sqla_version="0.8.3"
bottle_version="0.11.6"

#creating virtual python environment
virtualenv -p /usr/local/bin/python2.7 $target #stackless

#installing modules
$target/bin/pip install -I sqlalchemy==$sqla_version
$target/bin/pip install -I bottle==$bottle_version
---------------------------------------------------------

e.g. to start the python interpreter interactive prompt (I never got
"activate" for the environment to work, but i don't need it so ...):

$/home/lars/pyenv/[env_name]/python

It does not touch the pre-installed python version.

Far from perfect I am sure, but it works for now.

Cheers, Lars

On Fri, Dec 19, 2014 at 3:28 PM, Anselm Kruis <[email protected]>
wrote:

> Hi Lars,
>
> I didn't test the stackless-python package on Centos 7. It didn't exist
> back then. For now, my only advice is to compile stackless yourself.
>
> Regards
>   Anselm
>
>
>
> Am 15.12.2014 um 17:33 schrieb lars van Gemerden:
>
>> Hi, I have  a problem with stackless on RedHat/Linux (actually
>> Centos/Linux). What what i do is:
>>
>> [lars@localhost Desktop]$ sudo pip install stackless-python
>> Downloading/unpacking stackless-python
>>    Downloading stackless-python-10.0.tar.gz
>>    Running setup.py (path:/tmp/pip_build_root/stackless-python/setup.py)
>> egg_info for package stackless-python
>>
>>      Installed
>> /tmp/pip_build_root/stackless-python/stackless_installer_C4_
>> linux_x86_64-2.7.5.3-py2.7.egg
>>
>> Installing collected packages: stackless-python
>>    Running setup.py install for stackless-python
>>      /usr/bin/python -c import sys;from pkg_resources import
>> load_entry_point;sys.exit(load_entry_point('stackless_
>> installer_C4_linux_x86_64',
>> 'console_scripts', 'install-stackless')())
>>      Stackless installer: install successfully completed
>>      Installed Stackless Python
>>
>> Successfully installed stackless-python
>> Cleaning up...
>> [lars@localhost Desktop]$ slpython2.7
>> Could not find platform independent libraries <prefix>
>> Could not find platform dependent libraries <exec_prefix>
>> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
>> ImportError: No module named site
>> [lars@localhost Desktop]$ export PYTHONHOME=/usr/lib/
>> [lars@localhost Desktop]$ slpython2.7
>> ImportError: No module named site
>> [lars@localhost Desktop]$ python
>> ImportError: No module named site
>>
>> I am using a new install of:
>>
>> Windows7->VirtualBox4.3->Centos7, all 64 bits
>>
>> The pre-installed version of python is 2.7.5
>>
>> I am new to linux so it might something i do wrong or is there a problem
>> with the install script? How can i fix this?
>>
>> Cheers, Lars
>>
>>
>>
>>
>>
>> Hi, I have  a problem with stackless on RedHat/Linux (actually
>> Centos/Linux). What what i do is:
>>
>>     [lars@localhost Desktop]$ sudo pip install stackless-python
>>     Downloading/unpacking stackless-python
>>        Downloading stackless-python-10.0.tar.gz
>>        Running setup.py
>>     (path:/tmp/pip_build_root/stackless-python/setup.py) egg_info for
>>     package stackless-python
>>          Installed
>>     /tmp/pip_build_root/stackless-python/stackless_installer_C4_
>> linux_x86_64-2.7.5.3-py2.7.egg
>>     Installing collected packages: stackless-python
>>        Running setup.py install for stackless-python
>>          /usr/bin/python -c import sys;from pkg_resources import
>>     load_entry_point;sys.exit(load_entry_point('stackless_
>> installer_C4_linux_x86_64',
>>     'console_scripts', 'install-stackless')())
>>          Stackless installer: install successfully completed
>>          Installed Stackless Python
>>     Successfully installed stackless-python
>>     Cleaning up...
>>     [lars@localhost Desktop]$ slpython2.7
>>     Could not find platform independent libraries <prefix>
>>     Could not find platform dependent libraries <exec_prefix>
>>     Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
>>     ImportError: No module named site
>>     [lars@localhost Desktop]$ export PYTHONHOME=/usr/lib/
>>     [lars@localhost Desktop]$ slpython2.7
>>     ImportError: No module named site
>>     [lars@localhost Desktop]$ python
>>     ImportError: No module named site
>>
>> I am using a new install of:
>>
>> Windows7->VirtualBox4.3->Centos7, all 64 bits
>>
>> The pre-installed version of python is 2.7.5
>>
>> I am new to linux so it might something i do wrong or is there a problem
>> with the install script? How can i fix this?
>>
>> Cheers, Lars
>>
>>
>>
>> --
>> ====================================
>> Lars van Gemerden
>> [email protected] <mailto:[email protected]>
>> +31 6 26 88 55 39
>> ====================================
>>
>>
>> _______________________________________________
>> Stackless mailing list
>> [email protected]
>> http://www.stackless.com/mailman/listinfo/stackless
>>
>>
> --
>  Dipl. Phys. Anselm Kruis                       science + computing ag
>  Senior Solution Architect                      Ingolstädter Str. 22
>  email [email protected]             80807 München, Germany
>  phone +49 89 356386 874  fax 737               www.science-computing.de
> --
> Vorstandsvorsitzender/Chairman of the board of management:
> Gerd-Lothar Leonhart
> Vorstand/Board of Management:
> Dr. Bernd Finkbeiner, Michael Heinrichs, Dr. Arno Steitz
> Vorsitzender des Aufsichtsrats/
> Chairman of the Supervisory Board:
> Philippe Miltin
> Sitz/Registered Office: Tuebingen
> Registergericht/Registration Court: Stuttgart
> Registernummer/Commercial Register No.: HRB 382196
>
>
>
> _______________________________________________
> Stackless mailing list
> [email protected]
> http://www.stackless.com/mailman/listinfo/stackless
>



-- 
====================================
Lars van Gemerden
[email protected]
+31 6 26 88 55 39
====================================
_______________________________________________
Stackless mailing list
[email protected]
http://www.stackless.com/mailman/listinfo/stackless

Reply via email to