aboutsummaryrefslogtreecommitdiff
path: root/vim/bundle/YouCompleteMe/install.py
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2016-06-30 16:11:56 +0200
committerKarel Kočí <cynerd@email.cz>2016-06-30 16:11:56 +0200
commit9931e0888b2419326ae10ebbfae532261c5c125f (patch)
tree7504be5daccbb7b7d1ea396754de47b11ed790e5 /vim/bundle/YouCompleteMe/install.py
parente573b3020c032400eed60b649a2cbf55266e6bb0 (diff)
downloadmyconfigs-9931e0888b2419326ae10ebbfae532261c5c125f.tar.gz
myconfigs-9931e0888b2419326ae10ebbfae532261c5c125f.tar.bz2
myconfigs-9931e0888b2419326ae10ebbfae532261c5c125f.zip
Fix submodules
Diffstat (limited to 'vim/bundle/YouCompleteMe/install.py')
m---------vim/bundle/YouCompleteMe0
-rwxr-xr-xvim/bundle/YouCompleteMe/install.py44
2 files changed, 0 insertions, 44 deletions
diff --git a/vim/bundle/YouCompleteMe b/vim/bundle/YouCompleteMe
new file mode 160000
+Subproject 0de1c0c9bb13ce82172b472c676035cd47cf6a6
diff --git a/vim/bundle/YouCompleteMe/install.py b/vim/bundle/YouCompleteMe/install.py
deleted file mode 100755
index 36bb70e..0000000
--- a/vim/bundle/YouCompleteMe/install.py
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/usr/bin/env python
-
-from __future__ import print_function
-from __future__ import division
-from __future__ import unicode_literals
-from __future__ import absolute_import
-
-import os
-import subprocess
-import sys
-import os.path as p
-import glob
-
-PY_MAJOR, PY_MINOR = sys.version_info[ 0 : 2 ]
-if not ( ( PY_MAJOR == 2 and PY_MINOR >= 6 ) or
- ( PY_MAJOR == 3 and PY_MINOR >= 3 ) or
- PY_MAJOR > 3 ):
- sys.exit( 'YouCompleteMe requires Python >= 2.6 or >= 3.3; '
- 'your version of Python is ' + sys.version )
-
-DIR_OF_THIS_SCRIPT = p.dirname( p.abspath( __file__ ) )
-DIR_OF_OLD_LIBS = p.join( DIR_OF_THIS_SCRIPT, 'python' )
-
-
-def Main():
- build_file = p.join( DIR_OF_THIS_SCRIPT, 'third_party', 'ycmd', 'build.py' )
-
- if not p.isfile( build_file ):
- sys.exit( 'File ' + build_file + ' does not exist; you probably forgot '
- 'to run:\n\tgit submodule update --init --recursive\n\n' )
-
- python_binary = sys.executable
- subprocess.check_call( [ python_binary, build_file ] + sys.argv[1:] )
-
- # Remove old YCM libs if present so that YCM can start.
- old_libs = (
- glob.glob( p.join( DIR_OF_OLD_LIBS, '*ycm_core.*' ) ) +
- glob.glob( p.join( DIR_OF_OLD_LIBS, '*ycm_client_support.*' ) ) +
- glob.glob( p.join( DIR_OF_OLD_LIBS, '*clang*.*') ) )
- for lib in old_libs:
- os.remove( lib )
-
-if __name__ == "__main__":
- Main()