summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorSergey Kosukhin <skosukhin@gmail.com>2017-11-11 03:50:11 +0100
committerChristoph Junghans <christoph.junghans@gmail.com>2017-11-10 19:50:11 -0700
commit263126bc5d8522f2f7c91b9c1380aaf61a0431d5 (patch)
tree5372fc75cbce096008e1541fa566adf15713f6bd /var
parentaf06ea0e748bf4dce52b235bdb89da47fd34613b (diff)
downloadspack-263126bc5d8522f2f7c91b9c1380aaf61a0431d5.tar.gz
spack-263126bc5d8522f2f7c91b9c1380aaf61a0431d5.tar.bz2
spack-263126bc5d8522f2f7c91b9c1380aaf61a0431d5.tar.xz
spack-263126bc5d8522f2f7c91b9c1380aaf61a0431d5.zip
Create symlink for 'swig' binary after installation. (#6240)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/swig/package.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/swig/package.py b/var/spack/repos/builtin/packages/swig/package.py
index 83ff461c9c..e9148333de 100644
--- a/var/spack/repos/builtin/packages/swig/package.py
+++ b/var/spack/repos/builtin/packages/swig/package.py
@@ -22,6 +22,9 @@
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
+import os
+
+
from spack import *
@@ -50,3 +53,8 @@ class Swig(AutotoolsPackage):
depends_on('pcre')
build_directory = 'spack-build'
+
+ @run_after('install')
+ def create_symlink(self):
+ with working_dir(self.prefix.bin):
+ os.symlink('swig', 'swig%i.0' % self.spec.version[0])