FS#77882 - [python-sympy] Add /etc/profile.d/-file to set USE_SYMENGINE=1 if python-symengine.

Attached to Project: Community Packages
Opened by Oid Maps (dreieck) - Friday, 17 March 2023, 12:48 GMT
Last edited by Antonio Rojas (arojas) - Saturday, 18 March 2023, 21:55 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Antonio Rojas (arojas)
Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The package `python-sympy` has as optional dependency `python-symengine` with the comment
> optimized backend, set USE_SYMENGINE=1 to use

To automate this, I suggest to include files
* /etc/profile.d/use_symengine.sh
* /etc/profile.d/use_symengine.csh
* etc.

that set the environment variable `USE_SYMENGINE=1` if `python-symengine` is installed.

I have attached a suggestion for those files.

Additional info:
* package version(s) 1.11.1
This task depends upon

Closed by  Antonio Rojas (arojas)
Saturday, 18 March 2023, 21:55 GMT
Reason for closing:  Won't implement
Comment by Antonio Rojas (arojas) - Saturday, 18 March 2023, 21:55 GMT
It's a simple env variable which is trivial to set. This is overkill IMO. This should rather be addressed upstream to use symengine automatically if it is importable.

Loading...