Changeset 212
- Timestamp:
- 03/23/11 23:00:16 (14 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SConstruct
r211 r212 1 1 import sys 2 import distutils.sysconfig 2 import os 3 #import distutils.sysconfig 3 4 4 5 #cflags = '-std=gnu99 -pedantic -Wall' … … 41 42 man_reglookup_timeline = env.ManPage('doc/reglookup-timeline.1.docbook') 42 43 43 44 44 # Installation 45 45 prefix='/usr/local/' 46 install_items = [prefix+'bin', 47 prefix+'lib', 48 prefix+'include/regfi', 49 prefix+'man'] 50 46 51 env.Install(prefix+'bin', [reglookup, reglookup_recover, 'bin/reglookup-timeline']) 47 52 env.Install(prefix+'lib', [libregfi, libregfi_static]) 48 env.Install(distutils.sysconfig.get_python_lib()+'/pyregfi', ['python/pyregfi/__init__.py', 'python/pyregfi/structures.py'])49 53 env.Install(prefix+'include/regfi', Glob('include/*.h')) 50 54 env.Install(prefix+'man/man1', [man_reglookup, man_reglookup_recover, 51 55 man_reglookup_timeline]) 52 56 53 # Could do this instead, but not sure how to ensure cleanup afterward. 54 #from distutils.core import setup 55 #setup(name='pyregfi', version='0.1', package_dir={'':'python'}, packages=['pyregfi']) 57 if sys.version_info[0] == 2: 58 install_items.append('pyregfi2-install.log') 59 env.Command('pyregfi2-install.log', ['python/pyregfi/__init__.py', 'python/pyregfi/structures.py'], 60 "python pyregfi-distutils.py install | tee pyregfi2-install.log") 61 62 python_path = os.popen('which python3').read() 63 if python_path != '': 64 install_items.append('pyregfi3-install.log') 65 env.Command('pyregfi3-install.log', ['python/pyregfi/__init__.py', 'python/pyregfi/structures.py'], 66 "python3 pyregfi-distutils.py install | tee pyregfi3-install.log") 67 56 68 57 69 # User Friendly Targets 58 70 env.Alias('libregfi', libregfi) 59 env.Alias('pyregfi', distutils.sysconfig.get_python_lib()+'/pyregfi')60 71 env.Alias('reglookup', reglookup) 61 72 env.Alias('reglookup-recover', reglookup_recover) 62 73 env.Alias('bin', [reglookup_recover, reglookup]) 63 74 env.Alias('doc', [man_reglookup,man_reglookup_recover,man_reglookup_timeline]) 64 env.Alias('install', [prefix+'bin', 65 prefix+'lib', 66 prefix+'include/regfi', 67 distutils.sysconfig.get_python_lib()+'/pyregfi', 68 prefix+'man']) 75 env.Alias('install', install_items) 69 76 70 77 Default('bin', libregfi) -
trunk/python/pyregfi/__init__.py
r210 r212 149 149 ## Abstract class which Handles memory management and proxies attribute 150 150 # access to base structures 151 class _StructureWrapper( ):151 class _StructureWrapper(object): 152 152 153 153 hive = None … … 187 187 188 188 189 class _GenericList( ):189 class _GenericList(object): 190 190 hive = None 191 191 key = None … … 241 241 return self.constructor(self.hive, elem) 242 242 243 # For Python 2.x 244 def next(self): 245 return self.__next__() 246 243 247 244 248 class _SubkeyList(_GenericList): … … 457 461 return self.current_key() 458 462 463 # For Python 2.x 464 def next(self): 465 return self.__next__() 466 459 467 def down(self): 460 468 pass
Note: See TracChangeset
for help on using the changeset viewer.