Last active
April 19, 2025 23:40
-
-
Save stefanor/c6a59e920655c95406f9b221dfefb733 to your computer and use it in GitHub Desktop.
Revisions
-
stefanor created this gist
Apr 19, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ check: build $(wildcard build/scripts-*/fibpy.py) 12 build: python3 setup.py build clean: rm -rf build .PHONY: check clean This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ #!/usr/bin/env python import sys def fib(n): if n < 0: raise ValueError() if n < 2: return 1 return fib(n - 1) + fib(n - 2) if __name__ == '__main__': print(fib(int(sys.argv[1]))) This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ [build-system] requires = ["setuptools >= 70.1.0"] build-backend = 'setuptools.build_meta' This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ #!/usr/bin/python3 from setuptools import setup setup( name='fibpy', version='42.0.0', description='Pure Python Fibonacci', scripts=['fibpy.py'], )