[nox-dev] meta.json syntax and importing files in Python

2011-12-16 Thread Bernd Wittefeld

Hi,
I'm am wondering about the syntax and sematic of the meta.json files. I 
cannot find anything about it in the wiki and the mailinglists.


The problem is a fairly easy one: I have written a python component and 
splitted it up in several files, but I cannot import those files. I 
tried various permutations of the import statement and nothing worked.
Can you give me a hint where I can find valuable information about the 
NOX build system? Do I have to add my *.py files (which I only want to 
use in my component) to Makefile.am and meta.json?


Thanks in advance

Bernd
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] meta.json syntax and importing files in Python

2011-12-16 Thread Murphy McCauley
Some of this is at least lightly documented on the wiki:
http://noxrepo.org/noxwiki/index.php/Developing_in_NOX

(Please feel free to extend it!)


There's a bit more info about the meta files in the FAQ:
http://noxrepo.org/noxwiki/index.php/FAQ#Where_can_I_see_and_edit_the_code_that_corresponds_to_different_NOX_components.3F


Really quickly and informally, the meta files (formerly meta.xml, now 
meta.json) are what really specify a NOX component.  Specifically, they:
1. Define a component name (name key).  These are the names that, for 
example, can be specified on the nox_core commandline.
2. Specify which code corresponds to a component (library and python keys). 
 A component may be a shared library or a Python module or both.  NOX will load 
the specified library/module, and execute a factory in order to get an actual 
component instance (the mechanism for this is somewhat different in Python and 
in C++).  You only need to specify the library/module where this factory comes 
from.
3. Specify dependencies (dependencies key).  This is a list of other 
components which this component relies on.  NOX will attempt to load these 
automatically.


Hope that helps.

-- Murphy

On Dec 16, 2011, at 7:40 AM, Bernd Wittefeld wrote:

 Hi,
 it's me again :)
 I was able to import my python files. They needed to be added to the 
 NOX_RUNTIMEFILES and EXTRA_DIST in my Makefile.am, so that the links from the 
 build directory were established.
 So that problem is solved, but I would love to have some docs about those 
 meta.json files.
 
 Greetings
 Bernd
 
 
 On 16.12.2011 16:03, Bernd Wittefeld wrote:
 Hi,
 I'm am wondering about the syntax and sematic of the meta.json files. I 
 cannot find anything about it in the wiki and the mailinglists.
 
 The problem is a fairly easy one: I have written a python component and 
 splitted it up in several files, but I cannot import those files. I tried 
 various permutations of the import statement and nothing worked.
 Can you give me a hint where I can find valuable information about the NOX 
 build system? Do I have to add my *.py files (which I only want to use in my 
 component) to Makefile.am and meta.json?
 
 Thanks in advance
 
 Bernd
 ___
 nox-dev mailing list
 nox-dev@noxrepo.org
 http://noxrepo.org/mailman/listinfo/nox-dev
 
 ___
 nox-dev mailing list
 nox-dev@noxrepo.org
 http://noxrepo.org/mailman/listinfo/nox-dev

___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev