[web2py] Re: Ubuntu pip install web2py in virtualenv

2011-08-03 Thread Christopher Steel
I did a little research on the pip web2py install. It places web2py and 
gluon in the virtualenvs lib/python/site-packages and when you run 
Python/bin/mkweb2pyenv it creates a "detached" Web2py applications directory 
in whatever directory you happen to be in when you run the command. People 
who are more familar with virtualenv and pip can may diga round and figure 
it out but it is an unexpected configuration for those more familiar with 
the "standard layout". It seems to work fine, but it tricky to figure out 
(in fact I have not finished exploring it and I should probably take a look 
at the documentation on pypi...




[web2py] Re: Ubuntu pip install web2py in virtualenv

2011-08-03 Thread Christopher Steel
Here is a rough working outline of what the future pip web2py "installer" 
could do. The one that is currently called web2py basically installs glueon 
to site-packages which is great if you want to import Web2py stuff, like say 
DAL functionality into another Python application but it is not what someone 
checking out Web2py would be expecting if they are looking for the Web2py 
GUI

This draft should work from the terminal on most nix systems. Works fine on 
OS X and should be fine on Ubuntu and others as well. Any feedback on 
layouts and so on and so forth would be great. It should not "conflict" with 
the current bash installer in the Web2py/scripts directory as it will 
install to ${HOME}/V_ENV/Web2py rather than ${HOME}/Web2py (on nix systems). 
Hopefully we can make it OS agnostic since it could be all Python...

http://www.web2pyslices.com/slices/take_slice/141

Let me know what you think. I am going to republish this using the subject 
"new pip installer proposal"


Re: [web2py] Re: Ubuntu pip install web2py in virtualenv

2011-08-02 Thread David Webb

On 08/02/2011 12:06 PM, pbreit wrote:

Hmmm...hard to say. Are you on Mac, Windows or *nix?

Can you try it with http:
hg clone http://code.google.com/p/web2py/ 
 web2py

on unix, and i found my truly bonehead error
don't know why, but in my terminal window i had typed code/google.com 
NOT code.google.com

thanks, after correcting the mistake download went smoothly


[web2py] Re: Ubuntu pip install web2py in virtualenv

2011-08-02 Thread Christopher Steel
>From my understanding pip is going to install the same package no matter 
what OS is making the request so this is not really an Ubuntu issue, but it 
is very interesting to me because it is cross platform...

I think the best approach would be to create a Python package that is sort 
of a utility for doing a "standard" Web2py installation. The same basic 
functionality is required for "installing" Web2py applications so we might 
want to consider that as a possibility as well. The trick will be insuring 
that the package remains os agnostic as pip is used "universally" across all 
platforms. The "faux installer" approach might work well for other systems 
that like repackaging things so they fit the systems concept of 
installations, so it could work for Debian and so on and so forth. 

So in a nutshell rather than "packaging" Web2py for Debian (which kind of 
destroys the elegance of not having to install Web2py) it we could "package" 
a Web2py "installer' that basically a glorified python based downloader, 
unarchiver and permissions checking utility that unpacks Web2py (and demo 
applicaitons?) to a location that is handy for folks who are just getting 
started with Web2py like $HOME/Web2py

I think if we do it as a Python module (the Web2py "faux installer" for lack 
of a better description, not Web2py itself) then we will have something to 
give to folks who want to create packages for specific OS's and the result 
will be a standard setup across platforms... ie /Users/me/web2py or 
/home/me/web2py and C:/Users?/me/ <- I forget the Windows parlance for home 
directory.

A number of options are available so this will require a bit of reflection. 
I think our primary goal is to give new folks an easy way to get started, 
but it also has some very interesting potential as far as making things 
easier for developers as well (we could have the package install mercurial 
or even fabric if we wanted to for example). 

My preference would be to put out a really basic one A.S.A.P. that does a 
straight up install and works across nix platforms (any Windows users using 
pip?) and over time we can add new features or create a similar tool for 
developers depending on how much it gets used and if we have demand.

What do people think?

Chris



[web2py] Re: Ubuntu pip install web2py in virtualenv

2011-08-02 Thread Christopher Steel
You are right, I will take a peek at it. I have never done a pip package but 
it looks interesting. The problem is a lot of these "installers" can't 
handle something that does not need to be installed... I think pip like to 
make things part of the local python installation as in  
site-packaged/web2py {big grin}

C.


Re: [web2py] Re: Ubuntu pip install web2py in virtualenv

2011-08-02 Thread pbreit
Hmmm...hard to say. Are you on Mac, Windows or *nix?

Can you try it with http:

hg clone http://code.google.com/p/web2py/
 web2py



Re: [web2py] Re: Ubuntu pip install web2py in virtualenv

2011-08-02 Thread David Webb

On 08/01/2011 05:55 PM, pbreit wrote:

I always advise installing via Mercurial clone if possible.

hg clone https://code.google.com/p/web2py/ web2py
i am get an error when trying to clone, tried multiple times last night 
and today


hg clone https://code/google.com/p/web2py/ web2py
abort: error: Connection refused

do i have to register somewhere or am i missing something?



[web2py] Re: Ubuntu pip install web2py in virtualenv

2011-08-01 Thread Massimo Di Pierro
The pip install needs to be fixed or be removed else it will confuse
new users. I will need help to fix it.

On Aug 1, 7:34 pm, Christopher Steel  wrote:
> ; ) Mercurial rocks...


[web2py] Re: Ubuntu pip install web2py in virtualenv

2011-08-01 Thread Christopher Steel
; ) Mercurial rocks...


[web2py] Re: Ubuntu pip install web2py in virtualenv

2011-08-01 Thread pbreit
I always advise installing via Mercurial clone if possible.

hg clone https://code.google.com/p/web2py/ web2py 


[web2py] Re: Ubuntu pip install web2py in virtualenv

2011-08-01 Thread Christopher Steel
I just download Web2py source and unpack. Since Web2py does not require 
installing in a traditional sense this works fine.

personally I use pip to install virtualenv but since the pip installer 
breaks up web2py into non-traditional directories I don't install Web2py 
with pip


C.


[web2py] Re: Ubuntu pip install web2py in virtualenv

2011-08-01 Thread flebber


On Jul 29, 11:17 am, flebber  wrote:
> On Jul 27, 11:45 pm, Johann Spies  wrote:
>
>
>
>
>
>
>
>
>
> > On 27 July 2011 14:08, flebber  wrote:
>
> > > I installed web2py into a virtualenv in my ubuntu install. When
> > > reading the book it states to start web2py with "python web2py.py -S
> > > welcome" however I don't appear to have web2py in my directory.
>
> > Are you referring to web2py or web2py.py in that directory?
>
> > > directory being  /home/sayth/.virtualenvs/learnWeb2py/bin
>
> > > the most likely candidate is runweb2py Is that what I should be using?
>
> > python web2py.py -S welcome
>
> > should work if you run it in the directory where web2py was installed.
> > There should be a file named web2py.py.
>
> > Regards
> > Johann
>
> > --
> >  May grace and peace be yours in abundance through the full knowledge of God
> > and of Jesus our Lord!  His divine power has given us everything we need for
> > life and godliness through the full knowledge of the one who called us by
> > his own glory and excellence.
> >                                                     2 Pet. 1:2b,3a
>
> I can see from the install from pip that web2py.py isn't installed.
>
> (learn272)sayth@sayth-TravelMate-5740G:~$ pip install web2py
> Downloading/unpacking web2py
>   Downloading web2py-1.96.4.tar.gz (4.7Mb): 4.7Mb downloaded
>   Running setup.py egg_info for package web2py
>
> Installing collected packages: web2py
>   Running setup.py install for web2py
>     changing mode of build/scripts-2.7/mkweb2pyenv from 644 to 755
>     changing mode of build/scripts-2.7/runweb2py from 644 to 755
>
>     changing mode of /home/sayth/.virtualenvs/learn272/bin/mkweb2pyenv
> to 755
>     changing mode of /home/sayth/.virtualenvs/learn272/bin/runweb2py
> to 755
> Successfully installed web2py
> Cleaning up...
> (learn272)sayth@sayth-TravelMate-5740G:~$

Guess the motto is shouldn't install web2py via pip .

Sayth


[web2py] Re: Ubuntu pip install web2py in virtualenv

2011-07-28 Thread flebber


On Jul 27, 11:45 pm, Johann Spies  wrote:
> On 27 July 2011 14:08, flebber  wrote:
>
> > I installed web2py into a virtualenv in my ubuntu install. When
> > reading the book it states to start web2py with "python web2py.py -S
> > welcome" however I don't appear to have web2py in my directory.
>
> Are you referring to web2py or web2py.py in that directory?
>
>
>
> > directory being  /home/sayth/.virtualenvs/learnWeb2py/bin
>
> > the most likely candidate is runweb2py Is that what I should be using?
>
> python web2py.py -S welcome
>
> should work if you run it in the directory where web2py was installed.
> There should be a file named web2py.py.
>
> Regards
> Johann
>
> --
>  May grace and peace be yours in abundance through the full knowledge of God
> and of Jesus our Lord!  His divine power has given us everything we need for
> life and godliness through the full knowledge of the one who called us by
> his own glory and excellence.
>                                                     2 Pet. 1:2b,3a

I can see from the install from pip that web2py.py isn't installed.

(learn272)sayth@sayth-TravelMate-5740G:~$ pip install web2py
Downloading/unpacking web2py
  Downloading web2py-1.96.4.tar.gz (4.7Mb): 4.7Mb downloaded
  Running setup.py egg_info for package web2py

Installing collected packages: web2py
  Running setup.py install for web2py
changing mode of build/scripts-2.7/mkweb2pyenv from 644 to 755
changing mode of build/scripts-2.7/runweb2py from 644 to 755

changing mode of /home/sayth/.virtualenvs/learn272/bin/mkweb2pyenv
to 755
changing mode of /home/sayth/.virtualenvs/learn272/bin/runweb2py
to 755
Successfully installed web2py
Cleaning up...
(learn272)sayth@sayth-TravelMate-5740G:~$