Changeset 1443
- Timestamp:
- 22/08/06 14:34:28 (15 years ago)
- Location:
- TI05-delivery/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TI05-delivery/trunk/README
r1359 r1443 1 1 You 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.2 NDG authorisation extensions and a dummy auth/authz module, or in embedded python mode. 3 3 4 4 stand-alone client & server … … 18 18 ==================== 19 19 20 $ make -C src 20 1. Select a suitable python to install into. 21 21 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: 23 25 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 26 28 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 28 33 29 Don't do "setup.py install" as the distribution hasn't been configured 30 for installation. 34 $ python setup.py install 31 35 36 If you don't have setuptools installed this will download and install it automatically. 32 37 33 $ test/test_bbftpd.py 38 3. Run the test cases. 34 39 35 Run the python-embedded tests.40 $ test/test_embedded.py 36 41 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 106 106 self.execute(os.system, ('doxygen',)) 107 107 108 from distutils.command.build import build108 from setuptools.command.bdist_egg import bdist_egg 109 109 110 class MyBuild(b uild):110 class MyBuild(bdist_egg): 111 111 def run(self): 112 112 # We make the stand-alone client/server here for 2 reasons: The source must be … … 114 114 # the stand-alone client. 115 115 self.spawn(['make', '-C', 'src']) 116 b uild.run(self)116 bdist_egg.run(self) 117 117 118 118 #------------------------------------------------------------------------------------------- … … 156 156 scripts=['examples/deliveryd.py'], 157 157 ext_modules = [bbftpd], 158 cmdclass = {'doc': Doc, 'b uild': MyBuild}158 cmdclass = {'doc': Doc, 'bdist_egg': MyBuild} 159 159 ) 160 160 … … 173 173 scripts=['examples/deliveryclient.py'], 174 174 ext_modules = [bbftpc], 175 cmdclass = {'doc': Doc, 'b uild': MyBuild}175 cmdclass = {'doc': Doc, 'bdist_egg': MyBuild} 176 176 )
Note: See TracChangeset
for help on using the changeset viewer.