Skip to content

Commit

Permalink
Call jediepcserver.py script directly
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Mar 17, 2014
1 parent 451226d commit 7efc1a3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -71,7 +71,7 @@ install-jedi-dev:
${PIP_INSTALL} --upgrade ${JEDI_DEV_URL}

env: $(ENV)/$(BINDIR)/activate
$(ENV)/$(BINDIR)/activate: ${ELPA_DIR} jedi.el setup.py
$(ENV)/$(BINDIR)/activate: ${ELPA_DIR} jedi.el jediepcserver.py setup.py
${VIRTUAL_EMACS} -batch -l jedi.el -f "jedi:install-server-block"
test -f $@
touch $@
Expand Down
8 changes: 3 additions & 5 deletions jedi.el
Expand Up @@ -78,8 +78,7 @@ to make this setting work."
:group 'jedi)

(defun jedi:-env-server-command ()
(let ((py (python-environment-bin "python" jedi:environment-root)))
(when py (list py jedi:server-script))))
(list (python-environment-bin "jediepcserver.py" jedi:environment-root)))

(defcustom jedi:server-command
(or (jedi:-env-server-command)
Expand All @@ -89,8 +88,7 @@ to make this setting work."
If you setup Jedi requirements using `jedi:install-server' command,
`jedi:server-command' should be automatically set to::
'(\"~/.emacs.d/.python-environments/default/bin/python\"
\"JEDI:SOURCE-DIR/jediepcserver.py\")
'(\"~/.emacs.d/.python-environments/default/bin/jediepcserver.py\")
Otherwise, it should be set to::
Expand Down Expand Up @@ -1100,7 +1098,7 @@ what jedi can do."

;;; Virtualenv setup
(defvar jedi:install-server--command
`("pip" "install" ,(convert-standard-filename jedi:source-dir)))
`("pip" "install" "--upgrade" ,(convert-standard-filename jedi:source-dir)))

;;;###autoload
(defun jedi:install-server ()
Expand Down
2 changes: 2 additions & 0 deletions jediepcserver.py 100644 → 100755
@@ -1,3 +1,5 @@
#!/usr/bin/env python

"""
Jedi EPC server.
Expand Down

0 comments on commit 7efc1a3

Please sign in to comment.