diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -602,7 +602,7 @@ INSTALL_VERSION_TEMPLATE = '''\
 
 from salt.version import SaltStackVersion
 
-__saltstack_version__ = SaltStackVersion\'{full_version_info}\'
+__saltstack_version__ = SaltStackVersion{full_version_info!r}
 '''
We need the `repr()` for the version tuple.