summary refs log blame commit diff stats
path: root/setup.py
blob: 960ee644981ce9a9a052d9716d0b4b742b6a167b (plain) (tree)


















                                                                       



                                                    
                                                
















                                                                  
                                                
#!/usr/bin/env python
# Copyright (C) 2009, 2010  Roman Zimbelmann <romanz@lavabit.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

import distutils.core
import ranger

if __name__ == '__main__':
	distutils.core.setup(
		name='ranger',
		description='Vim-like file manager',
		long_description=ranger.__doc__,
		version=ranger.__version__,
		author=ranger.__author__,
		author_email=ranger.__email__,
		license=ranger.__license__,
		url='http://savannah.nongnu.org/projects/ranger',
		scripts=['scripts/ranger'],
		data_files=[('share/man/man1', ['doc/ranger.1'])],
		package_data={'ranger': ['data/*']},
		packages=('ranger',
		          'ranger.api',
		          'ranger.colorschemes',
		          'ranger.container',
		          'ranger.core',
		          'ranger.defaults',
		          'ranger.ext',
		          'ranger.fsobject',
		          'ranger.gui',
		          'ranger.gui.widgets'))
an class="nv">that a 'paused' continuation can be 'resumed' # multiple times from the same point (but with changes to data). # # To run: # $ git clone https://github.com/akkartik/mu # $ cd mu # $ ./mu continuation2.mu # # Expected output: # 1 # 2 # 3 def main [ local-scope l:&:list:num <- copy null l <- push 3, l l <- push 2, l l <- push 1, l k:continuation <- call-with-continuation-mark 100/mark, create-yielder, l { x:num, done?:bool <- call k break-if done? $print x 10/newline loop } ] def create-yielder l:&:list:num -> n:num, done?:bool [ local-scope load-inputs return-continuation-until-mark 100/mark done? <- equal l, null return-if done?, 0/dummy n <- first l l <- rest l ]