mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
22 lines
752 B
Diff
22 lines
752 B
Diff
diff --git a/src/sage/lfunctions/sympow.py b/src/sage/lfunctions/sympow.py
|
|
index 92cb01fd73..b123e6accc 100644
|
|
--- a/src/sage/lfunctions/sympow.py
|
|
+++ b/src/sage/lfunctions/sympow.py
|
|
@@ -50,6 +50,7 @@ from __future__ import print_function, absolute_import
|
|
|
|
import os
|
|
|
|
+from sage.env import DOT_SAGE
|
|
from sage.structure.sage_object import SageObject
|
|
from sage.misc.all import pager
|
|
from sage.misc.verbose import verbose
|
|
@@ -78,7 +79,7 @@ class Sympow(SageObject):
|
|
"""
|
|
Used to call sympow with given args
|
|
"""
|
|
- cmd = 'sympow %s' % args
|
|
+ cmd = 'env SYMPOW_CACHEDIR="%s/sympow///" sympow %s' % (DOT_SAGE, args)
|
|
with os.popen(cmd) as f:
|
|
v = f.read().strip()
|
|
verbose(v, level=2)
|