sagemath/sagemath-nauty.patch
2013-08-05 18:34:44 -03:00

12 lines
789 B
Diff

diff -up sage-5.10/spkg/build/sage-5.10/sage/graphs/graph_generators.py.orig sage-5.10/spkg/build/sage-5.10/sage/graphs/graph_generators.py
--- sage-5.10/spkg/build/sage-5.10/sage/graphs/graph_generators.py.orig 2013-07-29 20:02:33.894072055 -0300
+++ sage-5.10/spkg/build/sage-5.10/sage/graphs/graph_generators.py 2013-07-29 20:02:42.421072381 -0300
@@ -774,7 +774,7 @@ class GraphGenerators():
"""
import subprocess
from sage.misc.package import is_package_installed
- if not is_package_installed("nauty"):
+ if 1:
raise TypeError("the optional nauty package is not installed")
sp = subprocess.Popen("nauty-geng {0}".format(options), shell=True,
stdin=subprocess.PIPE, stdout=subprocess.PIPE,