On Tue, Jul 7, 2009 at 4:20 AM, Jason Grout<jason-s...@creativetrax.com> wrote:

<SNIP>

>> How do you include modules from a new directory in Sage? I tried
>> as you suggested but sage somehow is not finding the module.
>
>
> See sage/setup.py (search for "packages").  Put your directory in there.
>
> Also, make sure you have an __init__.py

That __init__.py file should be an empty file. But it might not be
picked up by Mercurial when you produce a patch and you want to
include that empty init file in your patch. In that case, you can
simply put a comment in __init__.py or just have the hash (#)
character as the only thing in that file. That should convince
Mercurial to include it.

> and an all.py in your directory
> (see other directories for what should be in these files).  This may be
> more than you need, but it should work, probably.  If you have a Cython
> file, you also need to add it to sage/module_list.py.

-- 
Regards
Minh Van Nguyen

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to