diff --git a/.gitignore b/.gitignore index 64e60dc..4f94532 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,5 @@ MANIFEST **/*.sas7bcat sascfg_personal.py **/*.ipynb_checkpoints/* +.eggs/**/* +SAS_kernel.egg-info/**/* diff --git a/sas_kernel/install.py b/sas_kernel/install.py index f1700b3..c27e7c9 100644 --- a/sas_kernel/install.py +++ b/sas_kernel/install.py @@ -29,7 +29,7 @@ from IPython.kernel.kernelspec import install_kernel_spec except ImportError: print("Please install either Jupyter to IPython before continuing") -from IPython.utils.tempdir import TemporaryDirectory +from IPython.utils.tempdir import TemporaryWorkingDirectory kernel_json = { "argv": [sys.executable, @@ -43,7 +43,7 @@ def install_my_kernel_spec(user=True, prefix=None): user = '--user' in sys.argv or not _is_root() - with TemporaryDirectory() as td: + with TemporaryWorkingDirectory() as td: os.chmod(td, 0o755) # Starts off as 700, not user readable with open(os.path.join(td, 'kernel.json'), 'w') as f: diff --git a/setup.py b/setup.py index 6d0e7c3..11dc735 100644 --- a/setup.py +++ b/setup.py @@ -56,7 +56,7 @@ def run(self): 'sas_kernel': ['data/*.json', 'data/*.png']}, install_requires=['saspy>=3.6', "metakernel>=0.27.5", "jupyter_client>=6", "IPython>=7.12.0"], - requires=['saspy', "metakernel", "jupyter_client", "IPython"], + setup_requires=["jupyter_client>=6", "IPython>=7.12.0"], extras_require={'jlab_ext': ['jupyterlab >=3 ', 'jlab_create_sas_file', 'sas2nb',