Skip to content

Commit

Permalink
modified install procedure to 'one shot'
Browse files Browse the repository at this point in the history
  • Loading branch information
jf.bercher committed Sep 7, 2016
1 parent 467be29 commit 476d392
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 15 deletions.
19 changes: 6 additions & 13 deletions MANIFEST.in
@@ -1,22 +1,15 @@
# explicit includes
include LICENSE.txt
include README.rst
include tox.ini

# explicit excludes
exclude .bumpversion.cfg
exclude .travis.yml
exclude appveyor.yml
exclude codecov.yml
#exclude .bumpversion.cfg

prune conda.recipe
graft src
graft tests

# Patterns to exclude from any directory
global-exclude *~
global-exclude __pycache__
global-exclude *.py[cod]
global-exclude .git
global-exclude .ipynb_checkpoints
## Patterns to exclude from any directory
#global-exclude __pycache__
#global-exclude *.py[cod]
#global-exclude .git
#global-exclude .ipynb_checkpoints

19 changes: 17 additions & 2 deletions setup.py
Expand Up @@ -40,7 +40,7 @@ def read(*names, **kwargs):


setup(name='jupyter_latex_envs',
version='1.2.999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999',
version='1.2.11',
description=("Jupyter notebook extension which supports (some) LaTeX environments " # noqa
"within markdown cells. Also provides support for labels and crossreferences, " # noqa
"document wide numbering, bibliography, and more..."),
Expand Down Expand Up @@ -74,6 +74,21 @@ def read(*names, **kwargs):
],
)


if 'install' in argv:
print(msg)
import site, importlib
importlib.reload(site)
import latex_envs
import notebook.nbextensions as nb
user = False
sys_prefix = False
if "--user" in argv:
user=True
if "--sys-prefix" in argv:
sys_prefix=True
print("[Step 2]: Installing the javascript nbextension")
nb.install_nbextension_python('latex_envs',
user=user, sys_prefix=sys_prefix)
print("[Step3]: Enabing the nbextension")
nb.enable_nbextension_python('latex_envs',
user=user, sys_prefix=sys_prefix)
Empty file modified upload_to_pypi 100644 → 100755
Empty file.

0 comments on commit 476d392

Please sign in to comment.