Skip to content

Commit

Permalink
fix setup.py add setup_requires.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared Dean committed Mar 22, 2021
1 parent 08038a4 commit d4e7427
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ MANIFEST
**/*.sas7bcat
sascfg_personal.py
**/*.ipynb_checkpoints/*
.eggs/**/*
SAS_kernel.egg-info/**/*
4 changes: 2 additions & 2 deletions sas_kernel/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit d4e7427

Please sign in to comment.