Skip to content

Commit 5d753b0

Browse files
committed
include for purposes of clean uninstalls
1 parent 6ba5746 commit 5d753b0

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def read_files(files):
2424
license=src['__license__'],
2525
author=src['__author__'],
2626
author_email=src['__author_email__'],
27+
include_package_data=True,
2728
packages=find_packages('src'),
2829
package_dir={'': 'src'},
2930
url=src['__url__'],

src/dotenvx/bin/dotenvx

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
11
#!/bin/sh
2-
echo "📦 Self-boostrapping dotenvx binary..."
3-
4-
# Directory of this script (e.g. site-packages/dotenvx/bin)
5-
SELF_PATH="$(cd "$(dirname "$0")" && pwd)"
6-
TARGET="$SELF_PATH/dotenvx"
7-
8-
# Install binary
9-
curl -sfS "https://dotenvx.sh?directory=$SELF_PATH" | sh
10-
11-
# Make sure it's executable
12-
chmod +x "$TARGET"
13-
14-
# Re-exec with original arguments
15-
exec "$TARGET" "$@"
2+
echo "[MISSING_BINARY] missing dotenvx binary. run: dotenvx-postinstall"
3+
exit 1

0 commit comments

Comments
 (0)