mirror of
https://github.com/XaverKlemenschits/jupyter-c-kernel.git
synced 2025-04-14 10:26:09 +00:00
Merge pull request #40 from halfhorst/master
add resources/ as package data
This commit is contained in:
commit
ca942437f6
@ -7,7 +7,7 @@ WORKDIR /tmp
|
||||
|
||||
COPY ./ jupyter_c_kernel/
|
||||
|
||||
RUN pip install --no-cache-dir -e jupyter_c_kernel/
|
||||
RUN pip install --no-cache-dir jupyter_c_kernel/
|
||||
RUN cd jupyter_c_kernel && install_c_kernel --user
|
||||
|
||||
WORKDIR /home/$NB_USER/
|
||||
|
1
MANIFEST.in
Normal file
1
MANIFEST.in
Normal file
@ -0,0 +1 @@
|
||||
include jupyter_c_kernel/resources/master.c
|
@ -83,7 +83,7 @@ class CKernel(Kernel):
|
||||
mastertemp = tempfile.mkstemp(suffix='.out')
|
||||
os.close(mastertemp[0])
|
||||
self.master_path = mastertemp[1]
|
||||
filepath = path.join(path.dirname(path.realpath(__file__)), '..', 'resources', 'master.c')
|
||||
filepath = path.join(path.dirname(path.realpath(__file__)), 'resources', 'master.c')
|
||||
subprocess.call(['gcc', filepath, '-std=c11', '-rdynamic', '-ldl', '-o', self.master_path])
|
||||
|
||||
def cleanup_files(self):
|
||||
|
3
setup.py
3
setup.py
@ -9,5 +9,6 @@ setup(name='jupyter_c_kernel',
|
||||
download_url='https://github.com/brendanrius/jupyter-c-kernel/tarball/1.2.1',
|
||||
packages=['jupyter_c_kernel'],
|
||||
scripts=['jupyter_c_kernel/install_c_kernel'],
|
||||
keywords=['jupyter', 'notebook', 'kernel', 'c']
|
||||
keywords=['jupyter', 'notebook', 'kernel', 'c'],
|
||||
include_package_data=True
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user