Changeset 1443


Ignore:
Timestamp:
22/08/06 14:34:28 (13 years ago)
Author:
spascoe
Message:

Bug fix for installing with setuptools + updated README.

Location:
TI05-delivery/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/trunk/README

    r1359 r1443  
    11You can build bbftp in 2 ways from this directory.  Either stand-alone client and server, with 
    2 NDG authorisation extensions and a dummy auth/authz module or in embedded python mode. 
     2NDG authorisation extensions and a dummy auth/authz module, or in embedded python mode. 
    33 
    44stand-alone client & server 
     
    1818==================== 
    1919 
    20 $ make -C src 
     20 1. Select a suitable python to install into. 
    2121 
    22    Needed to properly configure the bbftp source and compile the bbftp client for testing. 
     22    If you don't want to install into your default python 
     23    (recommended!) you can create a local copy of your global python 
     24    setup using the virtual-python.py script: 
    2325 
    24 Make sure your default python is fairly modern (v2.3+) which includes: 
    25  - distutils (part of the python-devel package in some linux distributions) 
     26    $ python ./virtual-python.py --prefix=./vpython 
     27    $ export PATH=./vython/bin:$PATH 
    2628 
    27 $ python setup.py build 
     29    installed packages will now be put in the ./vpython tree.  This is a good way of 
     30    testing the installation locally. 
     31     
     32 2. Run the install script 
    2833 
    29    Don't do "setup.py install" as the distribution hasn't been configured 
    30    for installation. 
     34    $ python setup.py install 
    3135 
     36    If you don't have setuptools installed this will download and install it automatically. 
    3237 
    33 $ test/test_bbftpd.py 
     38 3. Run the test cases. 
    3439 
    35    Run the python-embedded tests. 
     40    $ test/test_embedded.py 
    3641 
     42    These test cases run the client and server locally. 
     43 
     44    $ test/test_remote.py 
     45 
     46    These test cases ask for a remote host which has the delivery service installed. 
  • TI05-delivery/trunk/setup.py

    r1439 r1443  
    106106        self.execute(os.system, ('doxygen',)) 
    107107 
    108 from distutils.command.build import build 
     108from setuptools.command.bdist_egg import bdist_egg 
    109109 
    110 class MyBuild(build): 
     110class MyBuild(bdist_egg): 
    111111    def run(self): 
    112112        # We make the stand-alone client/server here for 2 reasons: The source must be 
     
    114114        # the stand-alone client. 
    115115        self.spawn(['make', '-C', 'src']) 
    116         build.run(self) 
     116        bdist_egg.run(self) 
    117117 
    118118#------------------------------------------------------------------------------------------- 
     
    156156      scripts=['examples/deliveryd.py'], 
    157157      ext_modules = [bbftpd], 
    158       cmdclass = {'doc': Doc, 'build': MyBuild} 
     158      cmdclass = {'doc': Doc, 'bdist_egg': MyBuild} 
    159159      ) 
    160160       
     
    173173      scripts=['examples/deliveryclient.py'], 
    174174      ext_modules = [bbftpc], 
    175       cmdclass = {'doc': Doc, 'build': MyBuild} 
     175      cmdclass = {'doc': Doc, 'bdist_egg': MyBuild} 
    176176      ) 
Note: See TracChangeset for help on using the changeset viewer.