Skip to content

Commit 55b67a6

Browse files
authored
Merge pull request #49 from ERPGulf/version-2
Version 2
2 parents c28ca5c + c0c5b0c commit 55b67a6

4 files changed

Lines changed: 16 additions & 1 deletion

File tree

‎=0.23.0‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[version-2 a8dd7b3] Added zstandard
2+
3 files changed, 12 insertions(+)
3+
create mode 100644 "=0.23.0\n"
4+
create mode 100644 changai/changai/setup/install.py

‎=0.23.0 ‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[version-2 f5bbc36] Added zstandard
2+
1 file changed, 1 insertion(+), 1 deletion(-)

‎changai/changai/setup/install.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import subprocess
2+
import sys
3+
4+
def install_system_deps():
5+
subprocess.run([
6+
"sudo", "apt", "install", "-y",
7+
"libffi-dev", "build-essential"
8+
], check=True)

‎changai/hooks.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@
115115
# Installation
116116
# ------------
117117

118-
# before_install = "changai.install.before_install"
118+
before_install = "changai.setup.install.install_system_deps"
119+
119120
# after_install = "changai.changai.api.v2.install.after_install"
120121
# after_migrate = "changai.changai.api.v2.install.after_migrate"
121122
# Uninstallation

0 commit comments

Comments
 (0)