Create symlink for 'swig' binary after installation. (#6240)

This commit is contained in:
Sergey Kosukhin 2017-11-11 03:50:11 +01:00 committed by Christoph Junghans
parent af06ea0e74
commit 263126bc5d

View File

@ -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])