[Cython] releasing 0.18?

2012-12-15 Thread Stefan Behnel
Hi,

the current master doesn't really have the one new, great&shiny feature,
but I don't see a reason to keep the changes back that we have implemented
so far. Robert's const support and the integer overflow checks (assuming
that both are ready) are certainly worth it. Unless Mark's minivect changes
are ready to merge soonish, I don't think we should keep waiting for them.

So, what about getting the master ready for a release?

Note that this means that we need a couple of more comments in the
changelog, as well as documentation for the things that need it (const?).

Stefan
___
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel


Re: [Cython] Cython is not PEP-420 (Implicit Namespace Packages) compliant

2012-12-15 Thread Alexey V Gorshkov

Stefan Behnel wrote:

Alexey V Gorshkov, 15.12.2012 02:17:

Reporting about Cython PEP-420 (Implicit Namespace Packages) incompliance.

(Sample package setup attached)

(http://www.python.org/dev/peps/pep-0420/)

Next package's tree will not work and will return error
[...]

I'm sure it's not - the compile time package resolution code in Cython was
written long before namespace packages were even being thought about. (For
comparison, remember that almost none of the existing CPython versions
supports namespaces packages either, 3.3 is the only exception).

Basically, the runtime import code should be ok, but the package resolution
at compile time, that is used mainly for cimports and for figuring out the
fully qualified module name of compiled modules, doesn't have any support
for packages that don't have an __init__.py.

Would you care to change that? You could try to come up with a patch, we'd
certainly appreciate it.

Stefan

___
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel
Following changes works for me. But I did not made any tests except on 
package I've sent in initial message.


diff --git a/Cython/Utils.py b/Cython/Utils.py
index 5739f38..8f05287 100644
--- a/Cython/Utils.py
+++ b/Cython/Utils.py
@@ -3,7 +3,7 @@
 #anywhere else in particular
 #

-import os, sys, re, codecs
+import os, os.path, sys, re, codecs

 modification_time = os.path.getmtime

@@ -87,7 +87,7 @@ def search_include_directories(dirs, qualified_name, 
suffix, pos,

 else:
 dirs = (find_root_package_dir(file_desc.filename),) + dirs

-dotted_filename = qualified_name
+dotted_filename = qualified_name.replace('.', os.path.sep)
 if suffix:
 dotted_filename += suffix
 if not include:

___
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel


Re: [Cython] releasing 0.18?

2012-12-15 Thread mark florisson
On 15 December 2012 17:34, Stefan Behnel  wrote:
> Hi,
>
> the current master doesn't really have the one new, great&shiny feature,
> but I don't see a reason to keep the changes back that we have implemented
> so far. Robert's const support and the integer overflow checks (assuming
> that both are ready) are certainly worth it. Unless Mark's minivect changes
> are ready to merge soonish, I don't think we should keep waiting for them.
>
> So, what about getting the master ready for a release?
>
> Note that this means that we need a couple of more comments in the
> changelog, as well as documentation for the things that need it (const?).
>
> Stefan
> ___
> cython-devel mailing list
> cython-devel@python.org
> http://mail.python.org/mailman/listinfo/cython-devel

Great. There was an issue with extension types as dtype in
memoryviews, which I hope to have a look at tomorrow.
___
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel