Skip to content

Commit 0ed38f4

Browse files
committed
First commit
0 parents  commit 0ed38f4

26 files changed

+1695
-0
lines changed

.gitignore

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
winpython.env
2+
.spyderproject
3+
doc.zip
4+
Thumbs.db
5+
doctmp/
6+
.vs/
7+
*.pyproj
8+
*.sln
9+
releases/
10+
DataLab-WinPython*/
11+
dependencies*.txt
12+
nsis/icons/*.ico
13+
nsis/images/*.bmp
14+
packages/
15+
Win*.exe
16+
17+
# Created by https://www.gitignore.io/api/python
18+
19+
### Python ###
20+
# Byte-compiled / optimized / DLL files
21+
__pycache__/
22+
*.py[cod]
23+
*$py.class
24+
25+
# C extensions
26+
*.so
27+
28+
# Distribution / packaging
29+
.Python
30+
env/
31+
build/
32+
develop-eggs/
33+
dist/
34+
downloads/
35+
eggs/
36+
.eggs/
37+
lib/
38+
lib64/
39+
parts/
40+
sdist/
41+
var/
42+
*.egg-info/
43+
.installed.cfg
44+
*.egg
45+
46+
# PyInstaller
47+
# Usually these files are written by a python script from a template
48+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
49+
*.manifest
50+
# *.spec
51+
52+
# Installer logs
53+
pip-log.txt
54+
pip-delete-this-directory.txt
55+
56+
# Unit test / coverage reports
57+
htmlcov/
58+
.tox/
59+
.coverage
60+
.coverage.*
61+
.cache
62+
nosetests.xml
63+
coverage.xml
64+
*,cover
65+
66+
# Translations
67+
*.mo
68+
*.pot
69+
70+
# Django stuff:
71+
*.log
72+
73+
# Sphinx documentation
74+
docs/_build/
75+
76+
# PyBuilder
77+
target/
78+
79+
/.spyproject

.vscode/tasks.json

Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "Download",
6+
"type": "shell",
7+
"command": "cmd",
8+
"args": [
9+
"/c",
10+
"download.bat"
11+
],
12+
"options": {
13+
"cwd": "scripts",
14+
},
15+
"group": {
16+
"kind": "build",
17+
"isDefault": true
18+
},
19+
"presentation": {
20+
"echo": true,
21+
"reveal": "always",
22+
"focus": false,
23+
"panel": "shared",
24+
"showReuseMessage": true,
25+
"clear": false
26+
}
27+
},
28+
{
29+
"label": "Distribute source",
30+
"type": "shell",
31+
"command": "cmd",
32+
"args": [
33+
"/c",
34+
"dist.bat"
35+
],
36+
"options": {
37+
"cwd": "scripts",
38+
"env": {
39+
"UNATTENDED": "1",
40+
}
41+
},
42+
"group": {
43+
"kind": "build",
44+
"isDefault": true
45+
},
46+
"presentation": {
47+
"echo": true,
48+
"reveal": "always",
49+
"focus": false,
50+
"panel": "shared",
51+
"showReuseMessage": true,
52+
"clear": false
53+
}
54+
},
55+
{
56+
"label": "Clean up",
57+
"type": "shell",
58+
"command": "cmd",
59+
"args": [
60+
"/c",
61+
"clean_up.bat"
62+
],
63+
"options": {
64+
"cwd": "scripts",
65+
"env": {
66+
"UNATTENDED": "1",
67+
"CI_DST": "DataLab-WinPython",
68+
"CI_WNM": "WPy64-31180",
69+
}
70+
},
71+
"group": {
72+
"kind": "build",
73+
"isDefault": true
74+
},
75+
"presentation": {
76+
"echo": true,
77+
"reveal": "always",
78+
"focus": false,
79+
"panel": "shared",
80+
"showReuseMessage": true,
81+
"clear": false
82+
}
83+
},
84+
{
85+
"label": "Create distribution",
86+
"type": "shell",
87+
"command": "cmd",
88+
"args": [
89+
"/c",
90+
"build_distribution.bat"
91+
],
92+
"options": {
93+
"cwd": "scripts",
94+
"env": {
95+
"UNATTENDED": "1",
96+
"CI_WNM": "WPy64-31180",
97+
"CI_WPI": "Winpython64-3.11.8.0dot.exe",
98+
}
99+
},
100+
"group": {
101+
"kind": "build",
102+
"isDefault": true
103+
},
104+
"presentation": {
105+
"echo": true,
106+
"reveal": "always",
107+
"focus": false,
108+
"panel": "shared",
109+
"showReuseMessage": true,
110+
"clear": false
111+
}
112+
},
113+
{
114+
"label": "Create installer",
115+
"type": "shell",
116+
"command": "cmd",
117+
"args": [
118+
"/c",
119+
"build_installer.bat"
120+
],
121+
"options": {
122+
"cwd": "scripts",
123+
"env": {
124+
"UNATTENDED": "1",
125+
"CI_WNM": "WPy64-31180",
126+
"CI_DST": "DataLab-WinPython",
127+
"CI_WPI": "Winpython64-3.11.8.0dot.exe",
128+
"CI_CYR": "Copyright (C) 2023 DataLab Platform Developers",
129+
"CI_VER": "0.12.0",
130+
}
131+
},
132+
"group": {
133+
"kind": "build",
134+
"isDefault": true
135+
},
136+
"presentation": {
137+
"echo": true,
138+
"reveal": "always",
139+
"focus": false,
140+
"panel": "shared",
141+
"showReuseMessage": true,
142+
"clear": false
143+
}
144+
},
145+
{
146+
"label": "Build all",
147+
"dependsOrder": "sequence",
148+
"dependsOn": [
149+
"Clean up",
150+
"Create distribution",
151+
"Create installer"
152+
]
153+
}
154+
]
155+
}

LICENSE

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2023, DataLab Platform Developers.
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
1. Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
2. Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
3. Neither the name of the copyright holder nor the names of its
17+
contributors may be used to endorse or promote products derived from
18+
this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
DataLab-WinPython
2+
=================
3+
4+
Description
5+
-----------
6+
7+
DataLab-WinPython is a Python distribution for Windows, based on WinPython,
8+
including DataLab (the open-source platform for scientific data analysis) and
9+
its dependencies.
10+
11+
Motivation
12+
----------
13+
14+
The goal of this project is to provide a simple and efficient way to deploy
15+
a DataLab-based application on Windows, without requiring the end user to
16+
install Python, Qt, or any other scientific/technical package.
17+
18+
As opposed to DataLab standalone installer for Windows which is based on
19+
[PyInstaller](https://www.pyinstaller.org/), DataLab-WinPython is based on
20+
[WinPython](https://winpython.github.io/). This allows to customize the
21+
Python environment and to install additional packages.
22+
23+
This is a solution to DataLab's [Issue #58](https://github.com/DataLab-Platform/DataLab/issues/58).
24+
25+
Technologies
26+
------------
27+
28+
DataLab-WinPython is based on the following technologies:
29+
30+
* Windows batch scripts (to minimize prerequisites)
31+
* NSIS installer creation software, with the "Locate" plugin
32+
* WinPython Python distribution
33+
* Python package manager "pip"
34+
* 7-zip compression software

create_installer.bat

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
@echo off
2+
REM ======================================================
3+
REM Generic Python Installer creation script
4+
REM ------------------------------------------
5+
REM Licensed under the terms of the BSD 3-Clause
6+
REM (see cdl/LICENSE for details)
7+
REM ======================================================
8+
9+
@REM === Build parameters ======================================================
10+
set CI_DST=DataLab-WinPython
11+
set CI_VER=0.12.0
12+
set CI_CYR=Copyright (C) 2023 DataLab Platform Developers
13+
set CI_WNM=WPy64-31180
14+
set CI_WPI=Winpython64-3.11.8.0dot.exe
15+
@REM ===========================================================================
16+
17+
set UNATTENDED=1
18+
call %~dp0scripts\clean_up.bat
19+
call %~dp0scripts\build_distribution.bat
20+
set UNATTENDED=
21+
call %~dp0scripts\build_installer.bat

executables/DataLab.bat

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@echo off
2+
call "%~dp0scripts\env_for_icons.bat" %*
3+
cd/D "%WINPYWORKDIR1%"
4+
"%WINPYDIR%\python.exe" -m cdl.app %*

executables/DataLab.ico

105 KB
Binary file not shown.

0 commit comments

Comments
 (0)