Re: synopsis 0.7 compilation error
Stefan Seefeld <[email protected]>
| Newsgroups | gmane.comp.documentation.synopsis |
|---|---|
| Message-ID | <20DCDD8F0FCED411AC4D001083CF504501AA9790@MTL-EXCHANGE> |
Serge Iovleff wrote:
>>
>>> I could not generate the doc, but it's an other story...
>>
>>
>>
>> yet I'd like to hear about it ! ;-)
>>
>
> The errror I get before installing Synopsis :
>
> $ python setup.py build_doc
> running build_doc
> sh -c make -C build/temp.linux-i686-2.3/Cxx-API doc
> make: entrant dans le répertoire «
/home/iovleff/dvlpt/synopsis/synopsis-0.7/build/temp.linux-i686-2.3/Cxx-API
»
> parsing
/home/iovleff/dvlpt/synopsis/synopsis-0.7/Cxx-API/include/Synopsis/AST/AST.h
h
> mkdir -p include/Synopsis/AST/
> python synopsis.py cxx --output=include/Synopsis/AST/AST.hh.syn
/home/iovleff/dvlpt/synopsis/synopsis-0.7/Cxx-API/include/Synopsis/AST/AST.h
h
> Traceback (most recent call last):
> File "synopsis.py", line 3, in ?
> from Synopsis import config
> ImportError: No module named Synopsis
> make: *** [include/Synopsis/AST/AST.hh.syn] Erreur 1
ah right, another thing that needs better documentation:
Building the documentation requires the Synopsis python package to be in the
python interpreter's path, which in your case it isn't.
You either need to install synopsis first ('python setup.py install') or you
have to add the directory into which Synopsis was built to the PYTHONPATH
variable. If you build with 'python setup.py build_ext --inplace' do a
'export PYTHONPATH=`pwd`:$PYTHONPATH' from within the toplevel synopsis
directory,
or else 'export PYTHONPATH=`pwd`/build/lib-<platform>:$PYTHONPATH' where
<platform>
depends on, well, your platform (look into your 'build/' directory to see
where
distutils puts the built modules).
I'll clarify this in the README, I promise.
Regards,
Stefan