-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #568 from aws-samples/xuhan-dev
feat: update npm run build and packaging
- Loading branch information
Showing
7 changed files
with
67 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,28 @@ | ||
#!/bin/bash | ||
|
||
# Change to the directory where this script is located | ||
# Works with both sh and bash | ||
SCRIPT_PATH="$0" | ||
echo "SCRIPT_PATH: $SCRIPT_PATH" | ||
SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_PATH")" && pwd)" | ||
cd "$SCRIPT_DIR" | ||
|
||
# Define paths using relative path for SHARED_DIR | ||
SHARED_DIR="$(cd "$SCRIPT_DIR/../shared" && pwd)" | ||
TARGET_DIR="$SCRIPT_DIR/dep/llm_bot_dep/shared" | ||
|
||
# Create target directory if it doesn't exist | ||
mkdir -p "$TARGET_DIR" | ||
|
||
# Copy files from shared directory to target directory | ||
echo "Copying shared files from $SHARED_DIR to $TARGET_DIR" | ||
cp -r "$SHARED_DIR"/ "$TARGET_DIR"/ | ||
|
||
# Now proceed with the original commands | ||
cd ./dep | ||
pip install setuptools wheel | ||
|
||
python3 setup.py bdist_wheel | ||
|
||
# Clean up: Remove the copied files after building the wheel | ||
echo "Cleaning up: Removing copied files from $TARGET_DIR" | ||
rm -rf "$TARGET_DIR" |
Binary file modified
BIN
+69.9 KB
(220%)
source/lambda/job/dep/dist/llm_bot_dep-0.1.0-py3-none-any.whl
Binary file not shown.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters