Skip to content
Snippets Groups Projects
Commit 58750b54 authored by YuviPanda's avatar YuviPanda
Browse files

Move xstartup file into package

Removes need for that step in postBuild
parent 8b5bbd03
No related branches found
No related tags found
No related merge requests found
import os
HERE = os.path.dirname(os.path.abspath(__file__))
def setup_desktop():
VNC_APPLICATION_DIR = os.path.join(os.getenv('CONDA_DIR'), 'vnc')
return {
......@@ -13,7 +15,7 @@ def setup_desktop():
'--',
VNC_APPLICATION_DIR + '/bin/vncserver',
'-verbose',
'-xstartup', VNC_APPLICATION_DIR + '/xstartup',
'-xstartup', os.path.join(HERE, 'share/xstartup'),
'-geometry', '1024x768',
'-SecurityTypes', 'None',
'-rfbunixpath', VNC_APPLICATION_DIR + '/socket',
......
File moved
......@@ -25,7 +25,4 @@ sed -i.bak \
noVNC-1.1.0/vnc_lite.html
cp $REPO_DIR/share/xstartup .
chmod +x xstartup
pip install $REPO_DIR
\ No newline at end of file
import setuptools
from setuptools import setup, find_packages
setuptools.setup(
setup(
name="jupyter-desktop-server",
# py_modules rather than packages, since we only have 1 file
py_modules=['jupyter_desktop'],
packages=find_packages(),
version='0.1',
entry_points={
'jupyter_serverproxy_servers': [
'desktop = jupyter_desktop:setup_desktop',
]
},
install_requires=['jupyter-server-proxy'],
package_data={
'jupyter_desktop': ['desktop/*'],
},
include_package_data=True,
zip_safe=False
)
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment