Skip to content

Commit

Permalink
feat: update Python installation script and requirements
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
Marvin Zhang committed Jan 3, 2025
1 parent 37d77f7 commit 99c6f42
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions docker/base-image/install/python/python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,20 @@ print_usage() {

# Function to install Python dependencies
install_dependencies() {
apt-get install -y \
apt install -y \
make \
build-essential \
libssl-dev \
zlib1g-dev \
libxml2-dev \
libxslt-dev \
libffi-dev
libffi-dev \
libbz2-dev \
libreadline-dev \
libsqlite3-dev \
zlib1g-dev \
xz-utils \
liblzma-dev
}

# Function to setup pyenv
Expand Down
2 changes: 1 addition & 1 deletion docker/base-image/install/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
crawlab-sdk>=0.7.0rc1
crawlab-sdk>=0.7.0rc5
scrapy
selenium
bs4
Expand Down

0 comments on commit 99c6f42

Please sign in to comment.