Github user holdenk commented on a diff in the pull request:
https://github.com/apache/spark/pull/14963#discussion_r78133178
--- Diff: dev/lint-python ---
@@ -17,6 +17,47 @@
# limitations under the License.
#
+VIRTUAL_ENV_DIR="build/venv"
+if [[ ! -z $VIRTUAL_ENV ]]; then
+ echo "We are in the following virtualenv: $VIRTUAL_ENV. Leaving it..."
+ # Cannot call "deactivate" from a bash script, copy/paste the code
from virtualenv 'activate'
--- End diff --
I think we could maybe simplify this using the answer from
http://stackoverflow.com/questions/29545624/how-to-deactivate-virtualenv-from-a-bash-script
(e.g. source or .) - what do you think?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]