Skip to content

Commit f18b6d7

Browse files
committed
Fix exclusions when deployment dir is a Windows virtualenv
1 parent a9a3ba0 commit f18b6d7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rsconnect/bundle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ def make_api_manifest(
864864
:return: the manifest and a list of the files involved.
865865
"""
866866
if is_environment_dir(directory):
867-
excludes = list(excludes or []) + ["bin/", "lib/"]
867+
excludes = list(excludes or []) + ["bin/", "lib/", "Lib/", "Scripts/", "Include/"]
868868

869869
extra_files = extra_files or []
870870
skip = [environment.filename, "manifest.json"]
@@ -1488,7 +1488,7 @@ def _warn_if_environment_directory(directory):
14881488
if is_environment_dir(directory):
14891489
click.secho(
14901490
" Warning: The deployment directory appears to be a python virtual environment.\n"
1491-
" Excluding the 'bin' and 'lib' directories.",
1491+
" Python libraries and binaries will be excluded from the deployment.",
14921492
fg="yellow",
14931493
)
14941494

rsconnect/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ def _warn_if_environment_directory(directory):
761761
if is_environment_dir(directory):
762762
click.secho(
763763
" Warning: The deployment directory appears to be a python virtual environment.\n"
764-
" Excluding the 'bin' and 'lib' directories.",
764+
" Python libraries and binaries will be excluded from the deployment.",
765765
fg="yellow",
766766
)
767767

0 commit comments

Comments
 (0)