I do not know if this helps, but I do it this way in my optional package:

doc:
    cd docs && sage -sh -c "make html"

doc-pdf:
    cd docs && sage -sh -c "make latexpdf"


On Thursday, January 31, 2019 at 12:05:03 PM UTC+1, Vincent Klein wrote:
>
> Thanks for your answer.
> I don't know exactly why it works with sagenb but doing the same with 
> pplpy doesn't work
> #spkg-install
>
> cd src && sdh_pip_install .
>
> cd docs
> $MAKE html
>
>
> Result in this :
>
> [pplpy-0.8.2b0] reading sources... [100%] index
> [pplpy-0.8.2b0] 
> [pplpy-0.8.2b0] WARNING: autodoc: failed to import module u'ppl'; the 
> following exception was raised:
> [pplpy-0.8.2b0] No module named ppl
> [pplpy-0.8.2b0] WARNING: autodoc: failed to import module 
> u'ppl.constraint'; the following exception was raised:
> [pplpy-0.8.2b0] No module named ppl.constraint
> [pplpy-0.8.2b0] WARNING: autodoc: failed to import module 
> u'ppl.linear_algebra'; the following exception was raised:
> [pplpy-0.8.2b0] No module named ppl.linear_algebra
> [pplpy-0.8.2b0] WARNING: autodoc: failed to import module 
> u'ppl.generator'; the following exception was raised:
> [pplpy-0.8.2b0] No module named ppl.generator
> [pplpy-0.8.2b0] WARNING: autodoc: failed to import module 
> u'ppl.polyhedron'; the following exception was raised:
> [pplpy-0.8.2b0] No module named ppl.polyhedron
> [pplpy-0.8.2b0] WARNING: autodoc: failed to import module 
> u'ppl.mip_problem'; the following exception was raised:
> [pplpy-0.8.2b0] No module named ppl.mip_problem
>
> Le jeudi 31 janvier 2019 10:56:46 UTC+1, Dima Pasechnik a écrit :
>>
>> Have a look at 
>>
>> build/pkgs/sagenb/spkg-install 
>>
>> which does what you are looking for, in one go, I think. 
>>
>> On Thu, Jan 31, 2019 at 8:49 AM Vincent Klein <vink...@gmail.com> wrote: 
>> > 
>> > Hi, 
>> > 
>> > I am looking for a good way  to compile a package sphinx's 
>> documentation during a spkg-install execution. 
>> > After doing a sdh_pip_install the compiled files are still in a 
>> temporary directory ($SAGE_DESTDIR_LOCAL/lib/python2.7/site-packages), a 
>> therefore a simple sphinx "make html" will fail to find your package's 
>> compiled files. 
>> > I am looking for a generic way for the /lib/python2.7/site-packages 
>> part. I haven't find an environment variable for that (I think this path is 
>> given/constructed by distutils). 
>> > 
>> > This question comes from ticket 
>> https://trac.sagemath.org/ticket/23024#comment:106. 
>> > 
>> > The current workaround we have is doing an "inplace" build before 
>>  generating the documentation (
>> https://git.sagemath.org/sage.git/commit/?id=ef8997834f73c34d983260c0ba782041d0966a02)
>>  
>>
>> > 
>> > Any help is welcomed 
>> > 
>> > Vincent K. 
>> > 
>> > -- 
>> > You received this message because you are subscribed to the Google 
>> Groups "sage-devel" group. 
>> > To unsubscribe from this group and stop receiving emails from it, send 
>> an email to sage-devel+...@googlegroups.com. 
>> > To post to this group, send email to sage-...@googlegroups.com. 
>> > Visit this group at https://groups.google.com/group/sage-devel. 
>> > For more options, visit https://groups.google.com/d/optout. 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to