public inbox for gentoo-guru@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-guru] reticulate python inherit
@ 2022-04-19 11:21 Alessandro Barbieri
  2022-04-19 15:39 ` Andrew Ammerlaan
  0 siblings, 1 reply; 2+ messages in thread
From: Alessandro Barbieri @ 2022-04-19 11:21 UTC (permalink / raw
  To: gentoo-guru

[-- Attachment #1: Type: text/plain, Size: 510 bytes --]

I'm going to package reticulate https://github.com/rstudio/reticulate
this package has RDEPEND="dev-lang/python"
it will install python files in
/usr/lib64/R/site-library/reticulate/python/rpytools

usptream says:

By default, reticulate uses the version of Python found on your PATH (i.e.
Sys.which("python")).

The use_python() function enables you to specify an alternate version, for
example:

library(reticulate)
use_python("/usr/local/bin/python")


I'm unsure on which python eclass should be inherited

[-- Attachment #2: Type: text/html, Size: 1034 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-guru] reticulate python inherit
  2022-04-19 11:21 [gentoo-guru] reticulate python inherit Alessandro Barbieri
@ 2022-04-19 15:39 ` Andrew Ammerlaan
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Ammerlaan @ 2022-04-19 15:39 UTC (permalink / raw
  To: gentoo-guru

On 19/04/2022 13:21, Alessandro Barbieri wrote:
> I'm going to package reticulate https://github.com/rstudio/reticulate 
> <https://github.com/rstudio/reticulate>
> this package has RDEPEND="dev-lang/python"
> it will install python files in 
> /usr/lib64/R/site-library/reticulate/python/rpytools
> 
> usptream says:
> 
> By default, reticulate uses the version of Python found on your |PATH| 
> (i.e. |Sys.which("python")|).
> 
> The |use_python()| function enables you to specify an alternate version, 
> for example:
> 
> library(reticulate)
> use_python("/usr/local/bin/python")
> 
> 
> I'm unsure on which python eclass should be inherited
> 
python-r1.eclass if you want to support multiple PYTHON_COMAPT, 
python-single-r1.eclass for using one single PYTHON_COMPAT instead. The 
eclass sets some environment variables (PYTHON,EPYTHON) for you which 
should make the build system use the enabled python version. If the 
upstream build system doesn't do anything too unusual it should just 
work, provided you set appropriate 
python_{prepare,configure,compile,install} phases.

Best regards,
Andrew


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-11-24 22:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-19 11:21 [gentoo-guru] reticulate python inherit Alessandro Barbieri
2022-04-19 15:39 ` Andrew Ammerlaan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox