Changes between Version 8 and Version 9 of NagareInstallation


Ignore:
Timestamp:
09/14/2011 07:10:33 PM (6 years ago)
Author:
apoirier
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NagareInstallation

    v8 v9  
    1919 
    2020  .. code-block:: sh 
    21    
     21 
    2222     cd /tmp 
    23      wget http://www.stackless.com/binaries/stackless-264-export.tar.bz2 
    24      tar jxvf stackless-264-export.tar.bz2 
    25       
    26      cd stackless-2.6.4* 
     23     wget http://www.stackless.com/binaries/stackless-271-export.tar.bz2 
     24     tar jxvf stackless-271-export.tar.bz2 
     25 
     26     cd stackless-271-export 
    2727     ./configure --prefix=<STACKLESS_HOME> 
    2828     make all 
    29      make install  
     29     make install 
    3030 
    3131.. note:: 
     
    4646 
    4747To install Stackless Python on Windows, download the `dedicated installer 
    48 <http://www.stackless.com/binaries/python-2.6.4-stackless.msi>`_ and launch it. 
     48<http://www.stackless.com/binaries/python-2.7.1-stackless.msi>`_ and launch it. 
    4949 
    50502. Nagare installation 
    5151---------------------- 
    5252 
    53 The framework can be installed system-wide, where every users can used it or 
     53The framework can be installed system-wide where every users can use it or 
    5454into a dedicated directory called a "virtual environment". 
    5555 
     
    6262 
    6363To create a virtual environment into the *<NAGARE_HOME>* directory, download 
    64 `virtualenv <http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.5.tar.gz>`_ and launch it **with Stackless Python**. 
     64`virtualenv <http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.6.4.tar.gz>`_ and launch it **with Stackless Python**. 
    6565 
    6666On Linux: 
     
    6969 
    7070     cd /tmp 
    71      wget http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.5.tar.gz 
    72      tar zxvf virtualenv-1.4.5.tar.gz 
    73       
    74      <STACKLESS_HOME>/bin/python virtualenv-1.4.5/virtualenv.py <NAGARE_HOME> 
    75        
     71     wget http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.6.4.tar.gz 
     72     tar zxvf virtualenv-1.6.4.tar.gz 
     73 
     74     <STACKLESS_HOME>/bin/python virtualenv-1.6.4/virtualenv.py <NAGARE_HOME> 
     75 
    7676On Windows: 
    7777 
     
    7979 
    8080    Download 
    81     `http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.5.tar.gz <http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.5.tar.gz>`_ 
    82     and extract the file ``virtualenv.py`` (you could need an archiver as ``7-zip`` or ``winrar``). 
    83      
     81    `http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.6.4.tar.gz <http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.6.4.tar.gz>`_ 
     82    and extract the file ``virtualenv.py`` (you could need an archiver like ``7-zip`` or ``winrar``). 
     83 
    8484    then launch: 
    85      
     85 
    8686    .. code-block:: cmd 
    87      
     87 
    8888       <STACKLESS_HOME>\python.exe virtualenv.py <NAGARE_HOME> 
    89   
     89 
    9090The final step is to install the framework into this newly created virtual 
    9191environment. 
    92   
     92 
    9393On Linux: 
    94   
     94 
    9595    .. code-block:: sh 
    96     
     96 
    9797       <NAGARE_HOME>/bin/easy_install 'nagare[full]' 
    98        
     98 
    9999On Windows: 
    100100 
    101101    .. code-block:: cmd 
    102      
     102 
    103103       <NAGARE_HOME>\Scripts\easy_install.exe nagare[full] 
    104         
     104 
    1051052.2. System-wide installation 
    106106~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    107107 
    108 If Stackless Python is installed on a system directory, you will need to have 
     108If Stackless Python is installed in a system directory, you will need to have 
    109109the root privileges. 
    110110 
     
    116116 
    117117  .. code-block:: sh 
    118    
     118 
    119119     <STACKLESS_HOME>/bin/easy_install 'nagare[full]' 
    120       
     120 
    121121or, on Windows: 
    122122 
    123123  .. code-block:: cmd 
    124    
     124 
    125125     <STACKLESS_HOME>\Scripts\easy_install.exe nagare[full] 
    126126 
     
    132132 
    133133The framework installation is modular. The command ``easy_install nagare`` installs 
    134 only the framework core with the minimum number of features. More features,  
     134only the framework core with the minimum number of features. More features, 
    135135called "extras", can be installed with the syntax ``easy_install 'nagare[extra1,extra2...]'``. 
    136136 
     
    141141  - `doc` -- install the Python modules needed to generate the framework documentation 
    142142  - `test` -- install the unit tests manager 
    143    
     143  - `i18n` -- install the internationalization modules 
     144 
    144145  - `full` -- install all of the above extras (i.e ``easy_install 'nagare[full]'`` 
    145     is equivalent to ``easy_install 'nagare[debug,database,doc,test]'``) 
     146    is equivalent to ``easy_install 'nagare[debug,database,doc,test,i18n]'``) 
    146147 
    1471484. Developers framework installation 
     
    155156 
    156157     cd /tmp 
    157      wget http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.5.tar.gz 
    158      tar zxvf virtualenv-1.4.5.tar.gz 
    159       
    160      <STACKLESS_HOME>/bin/python virtualenv-1.4.5/virtualenv.py <NAGARE_HOME> 
    161   
     158     wget http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.6.4.tar.gz 
     159     tar zxvf virtualenv-1.6.4.tar.gz 
     160 
     161     <STACKLESS_HOME>/bin/python virtualenv-1.6.4/virtualenv.py <NAGARE_HOME> 
     162 
    162163Second, grab the framework sources from the repository: 
    163164 
    164165  .. code-block:: sh 
    165    
     166 
    166167     cd <NAGARE_HOME> 
    167      svn co svn://www.nagare.org/trunk/nagare 
     168     hg clone http://hg.nagare.org/core 
    168169 
    169170Third, install the framework from the sources: 
    170171 
    171172  .. code-block:: sh 
    172    
    173      cd nagare/core 
     173 
     174     cd core 
    174175     <NAGARE_HOME>/bin/python setup.py develop 
    175      <NAGARE_HOME>/bin/easy_install 'nagare[full]'  
    176  
    177 You can now work with the sources of the framework in ``<NAGARE_HOME>nagare/core/nagare`` 
     176     <NAGARE_HOME>/bin/easy_install 'nagare[full]' 
     177 
     178You can now work with the sources of the framework in ``<NAGARE_HOME>/core/nagare`` 
    178179and, when you want to update the sources from the repository, do: 
    179180 
    180181  .. code-block:: sh 
    181    
    182      cd <NAGARE_HOME>/nagare/core 
    183      svn update 
     182 
     183     cd <NAGARE_HOME>/core 
     184     hg pull 
     185     hg update 
    184186     <NAGARE_HOME>/bin/python setup.py develop 
    185       
     187 
    1861885. Testing the installation 
    187189--------------------------- 
     
    190192 
    191193  .. code-block:: sh 
    192    
     194 
    193195     <NAGARE_HOME>/bin/nagare-admin serve admin 
    194196 
     
    196198 
    197199  .. code-block:: cmd 
    198    
     200 
    199201     <NAGARE_HOME>\Scripts\nagare-admin.exe serve admin 
    200202 
    201203which must results in the following display: 
    202       
    203   .. code-block:: sh 
    204    
     204 
     205  .. code-block:: sh 
     206 
    205207     Application 'app admin' registered as '/admin' 
    206208     Application 'app admin' registered as '/' 
    207209     serving on http://127.0.0.1:8080 
    208       
     210 
    209211Then you can browse at http://127.0.0.1:8080/admin to look at the administrative 
    210212interface.