Skip to content

Commit

Permalink
Move away from a CPython-like file structure. CPython is a C project …
Browse files Browse the repository at this point in the history
…with its own build structure. Puffin is a Python module with some extensions written in Winxed. It makes little sense to keep CPython's structure in Puffin, especially if Puffin is to end up on PyPI.

--HG--
rename : Objects/bla.winxed => objects/bla.winxed
rename : Objects/core.winxed => objects/core.winxed
rename : Objects/dicttype.winxed => objects/dicttype.winxed
rename : Objects/exceptions.winxed => objects/exceptions.winxed
rename : Objects/functype.winxed => objects/functype.winxed
rename : Objects/intobject.winxed => objects/intobject.winxed
rename : Objects/listobject.winxed => objects/listobject.winxed
rename : Objects/object.nqp => objects/object.nqp
rename : Objects/strobject.winxed => objects/strobject.winxed
rename : Objects/typeobject.winxed => objects/typeobject.winxed
rename : Python/__init__.py => puffin/__init__.py
rename : Python/compiler.py => puffin/compiler.py
rename : Lib/test/bootstrap/builtins.py => puffin/test/bootstrap/builtins.py
rename : Lib/test/bootstrap/class-list.py => puffin/test/bootstrap/class-list.py
rename : Lib/test/bootstrap/class-str.py => puffin/test/bootstrap/class-str.py
rename : Lib/test/bootstrap/control-flow.py => puffin/test/bootstrap/control-flow.py
rename : Lib/test/bootstrap/dicts.py => puffin/test/bootstrap/dicts.py
rename : Lib/test/bootstrap/exceptions.py => puffin/test/bootstrap/exceptions.py
rename : Lib/test/bootstrap/functions.py => puffin/test/bootstrap/functions.py
rename : Lib/test/bootstrap/grammar.py => puffin/test/bootstrap/grammar.py
rename : Lib/test/bootstrap/listcomps.py => puffin/test/bootstrap/listcomps.py
rename : Lib/test/bootstrap/lists.py => puffin/test/bootstrap/lists.py
rename : Lib/test/bootstrap/literals.py => puffin/test/bootstrap/literals.py
rename : Lib/test/bootstrap/op-assign.py => puffin/test/bootstrap/op-assign.py
rename : Lib/test/bootstrap/op-bitwise.py => puffin/test/bootstrap/op-bitwise.py
rename : Lib/test/bootstrap/op-boolean.py => puffin/test/bootstrap/op-boolean.py
rename : Lib/test/bootstrap/op-cmp.py => puffin/test/bootstrap/op-cmp.py
rename : Lib/test/bootstrap/op-logic-compare.py => puffin/test/bootstrap/op-logic-compare.py
rename : Lib/test/bootstrap/op-math-compare.py => puffin/test/bootstrap/op-math-compare.py
rename : Lib/test/bootstrap/op-math.py => puffin/test/bootstrap/op-math.py
rename : Lib/test/bootstrap/simplest.py => puffin/test/bootstrap/simplest.py
rename : Lib/test/bootstrap/variables.py => puffin/test/bootstrap/variables.py
rename : Python/test_compiler.py => puffin/test_compiler.py
rename : Python/util.py => puffin/util.py
  • Loading branch information
lucian1900 committed Jun 2, 2011
1 parent 2c80983 commit 8e71dcf
Show file tree
Hide file tree
Showing 37 changed files with 21 additions and 6 deletions.
4 changes: 0 additions & 4 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,3 @@ This software is distributed under the terms of either of the following licenses
- Artistic License 2.0

The full text of each license is to be found in the files LICENSE.psfl2 and LICENSE.al2, respectively.


Also, the Python Software Foundation and the Parrot Foundation are both granted a non-revocable, perpetual license to this software.
TODO reword this last bit, make sure they can both relicense this under terms of their choosing.
File renamed without changes.
19 changes: 19 additions & 0 deletions objects/boolobject.winxed
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
namespace Python [HLL] {

class bool : type {
function bool(env) {
self.type('int', env.type, env.object);

self.__dict__['__init__'] = function(obj, val) {
obj.content = val;
};
self.__dict__['__repr__'] = function(obj) {
if(obj.content)
return 'True';
else
return 'False';
};
}
}

}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

setup(
name = 'puffin',
packages = ['Python'],
packages = ['puffin'],
version = '0.0.0',
description = 'Python3 compiler for Parrot',
description = 'Python3 on Parrot',
author = 'Lucian Branescu Mihaila',
author_email = 'lucian.branescu@gmail.com',
url = 'http://bitbucket.org/lucian1900/puffin',
Expand Down

0 comments on commit 8e71dcf

Please sign in to comment.