================================================================================
$Id: 5:Python_FAQ.txt 346 2004-06-30 18:57:46Z cray $
--------------------------------------------------------------------------------
   :

        ,     
    .
    
    Q1:      Policy?
    
    A1:     python   -   
            , cray@neural.ru.   - 
        
        /usr/share/doc/rpm-build-python.   policy  
        altlinux docs team ,     ( , 
           - );
        
    Q2:     Policy?
    
    A2:   ,  python@neural.ru.     . 
            -   
        devel@altlinux.ru.      
         ;
        
    Q3:   Policy  ?
    
    A3:  - .     2003-  (cray,
        doc, ldv  ),      ,  
           -  -  ,  
           .    
        ,       ,
            .
    
          ,  ,   python & Zope. 
           () -  .  ? 
             python.   
        python - ,      .  ? 
            -       ;),  
           ,  :
        
            a)     ;
        
            b)      : 
                  ,   -
                  ( ,        );
                
        -      , , 
            LDV, , , 
          -  LDV,      .
        
    Q4:     -  -,   
        ""  .    ?
        
    A4:   .      -  
        .  ,   ,   , 
           ,   -   ,  .  
            ,    
        (    .QA2).
        
    Q5:         Distutils ?

    A5:   Distutils -    
             
          (  rpm)    . 
            "" . 
         rpm-build-python    Distutils 
        bdist_altrpm,   , 
         ,       -
        (, -  ).  ,  Distutils 
               ,
              ,  
        setup.py    ,    (
         -  ) .
        
           ,  -, Paul Uzorin  
        libAltDist,      ,    
            ,     ,
              . libAltDist 
           rpm .  AltLinuxTeam
           ( cleanup_spec, add_changelog, etc). libAltDist
            / ,    . 
        -    -      
           distutils,    
            ( -    ,
         -    );
        
    Q6:        ?
    
    A6:  .      . 
              ,  
          -        
         .   (,  
         )     .  
            .    -  -
          ,       -
        20 .
        
    Q7:    -     ?
    
    A7: , .      devel@altlinux.ru.
        
    Q8:      ?
    
    A8:    - ..      -  
         .      
           ,  -   
        .
        
    Q9:   ,  python-doc - .
    
    A9:   .     python-doc 
               ,    
           python-doc
        -    python23    python23-info. ,
            python -   python23-info
          python-doc.
        
    Q10:          
        py, pyo, pyc,          
        ? , ,   ?
        
    A10:    ,      
         ,        
          .       
          :
        
            1.       py, pyc  pyo, 
                    ,  ,  .
                
                   pyc & pyo:
                
                    -      py, pyc -    
                         -O (   
                        )    , 
                           ;
                        
                    -      py (), pyo - 
                           -O     pyo
                         ,   
                        py   ,    
                            ,   ,
                            -O  
                        ;
                        
                    -     pyc -    -O
                        () ;
                        
                    -     py -   
                             ;

                       
                pyc, : Zope,  ,   : 
                       -O.
                
                , ,    : "    ",
                  (python23), ,   
                ,  Zope,     
                ,  .   
                 (Live CD ),  .

            2.   py, pyc, pyo   ,    
                ,       , 
                   py (  /usr/share/doc,
                /usr/src,  -)  :   .
                
            3.  ,     python-<MODULE> &
                python-<MODULE>-src,   python-<MODULE>  
                pyo  () pyc,  ...-src -  py.
                
            4.      pyc  pyo,   
                :
            
                    -   (   
                    -  );
                    
                    -        
                        (  ,   
                        ,   ,   
                        );
                        
                    -      
                        %_install_langs (    ,   
                          ,    
                            ,   
                           python,   rpm;
                        
            5.        .. 
                python-<MODULE>,     
                   ,   ""
                 ( -src,    , 
                 ,   ,   
                ,    );
                
            6.     *py c  .
                                
              ,    
          .
        
    Q11:   python24    ?
    
    A11:    -   .     ;),  
                  .
                
    Q12:   Zope27?
    
    A12: Offtopic! offtopic!   ,     27   264. 
        , , -  .  -  
          27  ( -   ), 
               .   
           ,    
           Freehand,   
         python & Zope ,  ,  
        Z27      ,    ,  
         .    (  2.3.0, 2.4.0, 2.5.0, 2.6.0,
           2.1.0 & 2.2.0 (        
        ))         . 
          :  Zope , 
        WEB-,    Zope , 
           .  ,  
        WEB-    Zope   
        5%.

    Q13:     Zope?
    
    A13:   Zope -    Zope.    python 
          .     Zope,
        ,  ,  Plone,     
           ,  ,        
          .
        
    Q14:   /  python = 2.3,   
           python23,   , 
          ?
        
               ,  
          ?

    A14:       
        ,    -  "" 
               : 
               ,
                 ,
           python = 2.3      : 
               ,
           ,   -  .
        
          ,    python  
        .
        
          ,     ,   
           - python-*-X.Y -    python-*-X.Y+1
        ( -   )     
         .      
        notes/Names.txt.
        
        ,    :  ,    ,
         .
        
    
    Q15:
    > The following packages have unmet dependencies:
    >   solfege: Depends: python2.3(gnome) but it is not installable
    >            Depends: python2.3(gobject) but it is not installable
    >            Depends: python2.3(gtk) but it is not installable
    >            Depends: python2.3(mpd) but it is not installable
    >            Depends: python2.3(pango) but it is not installable
    >            Depends: python2.3(soundcard) but it is not installable
    >            Depends: python2.3(src) but it is not installable
    
    A15:

        ,         
    .   :    
     ,        - ,    .
    
         :
    
    1.   ,     ().
    
    :   
    
    2.    .
    
    :       (python-module-SOMETHAT-test) 
        AutoReqProv: nopython.   - .
    
    3.    :
    
    if EXPR :
        import MACOSMODULE
        
          (   ,   ),
        -  :       
          :
    
    %add_python_req_skip <_>
    
    4. ,       .   
          :
    
    %add_python_req_skip <_>
    
    Provide: python%__python_version( <_> )
    
          rpm-build-python      .

    5. ,  , ,     
     "":   :

    AutoReqProv: yes, nopython Requires: python-strict

      python-strict  "  python", 
       . ,    
           
    ( ,     ,    ,   
      Provides,       ,
        -  
    ( MySQL-python -> python-module-MySQLdb))).

     ,    ,    
    . , ..,     ,    
           , 
    
    
    Q16:    python-base-2.3.3-alt9  python-relaxed-2.3.3.alt9, 
    python.prov.py  : rpm-build-python   python2.3(__future__);
    
    A16:    ,   .   ,
        ,    .
    
        1.      rpm-build-python   
             python -  Require: python2.3(__future__)  
             .  ,       
            .
            
        2.      rpm-build-python  
            python  - ..      
                      
            .      ,    , 
                  
              ,       -    
              ,    .
            
    ,  ,    ,     
       ,    tcl     . 
           .
    
         :
    
        1.    -    ,
             python-devel;
        
        2.    -  python,  
            ,    rpm-build-python  ,
               .
            
          
    -2.   ,    -   
      ,     .
                
    ,     -   
       rpm-build-python   python-devel 
    python-base (  python-devel),    
    rpm-build-python    , 
       SUCCESS.



           ,   .
        
================================================================================
