Skip to content

Commit 99c6f42

Browse files
author
Marvin Zhang
committed
feat: update Python installation script and requirements
- Changed package manager command from 'apt-get' to 'apt' for improved usability. - Added additional Python dependencies: 'libbz2-dev', 'libreadline-dev', 'libsqlite3-dev', 'xz-utils', and 'liblzma-dev' to enhance the environment setup. - Updated 'crawlab-sdk' version in requirements.txt from '0.7.0rc1' to '0.7.0rc5' for compatibility and feature improvements.
1 parent 37d77f7 commit 99c6f42

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

docker/base-image/install/python/python.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,20 @@ print_usage() {
1515

1616
# Function to install Python dependencies
1717
install_dependencies() {
18-
apt-get install -y \
18+
apt install -y \
1919
make \
2020
build-essential \
2121
libssl-dev \
2222
zlib1g-dev \
2323
libxml2-dev \
2424
libxslt-dev \
25-
libffi-dev
25+
libffi-dev \
26+
libbz2-dev \
27+
libreadline-dev \
28+
libsqlite3-dev \
29+
zlib1g-dev \
30+
xz-utils \
31+
liblzma-dev
2632
}
2733

2834
# Function to setup pyenv

docker/base-image/install/python/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
crawlab-sdk>=0.7.0rc1
1+
crawlab-sdk>=0.7.0rc5
22
scrapy
33
selenium
44
bs4

0 commit comments

Comments
 (0)