2012/3/6 Mathieu Blondel <[email protected]>: > Hello, > > This was probably obvious but I recently realized that Cython pyd > files can be shared across projects. For example, one can do: > > from sklearn.linear_model.sgd_fast cimport WeightVector > > For it to work, one currently has to compile the corresponding pyx > file with the -I option to indicate the location of the pyd file: > > cython test_cimport.pyx -I /home/mathieu/Desktop/projects/scikit-learn/ > > However, recent versions of Cython [*] apparently search PYTHONPATH > for pyd files, which is really awesome. This makes it possible for > projects to rely on third-party Cython code without hardcoding the > include path. > > This makes me think that in the future we should really provide a > public Cython API whenever it makes sense. For example, the dataset > utility class that Peter started to work on for his SGD module would > be very useful for my work.
+1, I did not about it either. > Does anyone know if Sphinx can generate API references for pyd files? No idea. -- Olivier http://twitter.com/ogrisel - http://github.com/ogrisel ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Scikit-learn-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
