| Last change
 on this file since 971 was             745, checked in by Silvan Scherrer, 13 years ago | 
        
          | 
Samba Server: updated trunk to 3.6.0
 | 
        
          | File size:
            1.1 KB | 
      
      
| Line |  | 
|---|
| 1 | #!/usr/bin/env python | 
|---|
| 2 |  | 
|---|
| 3 | import os, Options | 
|---|
| 4 |  | 
|---|
| 5 | # work out what python external libraries we need to install | 
|---|
| 6 | external_libs = { | 
|---|
| 7 | "dns.resolver": "dnspython/dns", | 
|---|
| 8 | "subunit": "subunit/python/subunit", | 
|---|
| 9 | "testtools": "testtools/testtools"} | 
|---|
| 10 |  | 
|---|
| 11 | list = [] | 
|---|
| 12 |  | 
|---|
| 13 | for module, package in external_libs.items(): | 
|---|
| 14 | try: | 
|---|
| 15 | __import__(module) | 
|---|
| 16 | except ImportError: | 
|---|
| 17 | list.append(package) | 
|---|
| 18 |  | 
|---|
| 19 | for e in list: | 
|---|
| 20 | bld.INSTALL_WILDCARD('${PYTHONARCHDIR}/samba/external', e + '/**/*', flat=False, | 
|---|
| 21 | exclude='*.pyc', trim_path=os.path.dirname(e)) | 
|---|
| 22 |  | 
|---|
| 23 | bld.SAMBA_GENERATOR('external_init_py', | 
|---|
| 24 | rule='touch ${TGT}', | 
|---|
| 25 | target='empty_file') | 
|---|
| 26 |  | 
|---|
| 27 | bld.INSTALL_FILES('${PYTHONARCHDIR}/samba/external', 'empty_file', destname='__init__.py') | 
|---|
| 28 |  | 
|---|
| 29 | # a grouping library for event and socket related subsystems | 
|---|
| 30 | bld.SAMBA_LIBRARY('samba-sockets', | 
|---|
| 31 | source=[], | 
|---|
| 32 | private_library=True, | 
|---|
| 33 | grouping_library=True, | 
|---|
| 34 | deps='LIBTSOCKET samba_socket UTIL_TEVENT') | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.