libv8 4.5.95.5 → 5.0.71.48.0beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +45 -19
- data/CHANGELOG.md +14 -0
- data/README.md +30 -15
- data/Rakefile +7 -6
- data/ext/libv8/arch.rb +5 -4
- data/ext/libv8/builder.rb +25 -19
- data/ext/libv8/compiler.rb +6 -33
- data/ext/libv8/location.rb +7 -8
- data/lib/libv8/version.rb +1 -1
- data/libv8.gemspec +1 -1
- data/patches/build-standalone-static-library.patch +14 -0
- data/patches/disable-building-tests.patch +48 -10
- data/patches/fPIC-for-static.patch +3 -3
- data/release/x86-linux/Vagrantfile +8 -4
- data/release/x86_64-freebsd10/Vagrantfile +86 -0
- data/release/x86_64-linux/Vagrantfile +8 -4
- data/spec/compiler_spec.rb +5 -29
- data/spec/support/compiler_helpers.rb +2 -4
- data/vendor/depot_tools/.gitignore +15 -3
- data/vendor/depot_tools/OWNERS +2 -2
- data/vendor/depot_tools/PRESUBMIT.py +4 -2
- data/vendor/depot_tools/WATCHLISTS +6 -0
- data/vendor/depot_tools/apply_issue.py +70 -38
- data/vendor/depot_tools/bootstrap/win/README.md +66 -0
- data/vendor/depot_tools/bootstrap/win/git-bash.template.sh +12 -0
- data/vendor/depot_tools/bootstrap/win/git.template.bat +5 -0
- data/vendor/depot_tools/bootstrap/win/profile.d.python.sh +20 -0
- data/vendor/depot_tools/bootstrap/win/win_tools.bat +96 -45
- data/vendor/depot_tools/breakpad.py +6 -141
- data/vendor/depot_tools/buildbucket.py +45 -31
- data/vendor/depot_tools/cbuildbot +1 -0
- data/vendor/depot_tools/checkout.py +2 -1
- data/vendor/depot_tools/chrome_set_ver +1 -0
- data/vendor/depot_tools/cit +8 -0
- data/vendor/depot_tools/cit.bat +11 -0
- data/vendor/depot_tools/cit.py +120 -0
- data/vendor/depot_tools/codereview.settings +0 -2
- data/vendor/depot_tools/commit_queue +1 -5
- data/vendor/depot_tools/commit_queue.bat +1 -4
- data/vendor/depot_tools/commit_queue.py +78 -29
- data/vendor/depot_tools/cpplint.py +22 -14
- data/vendor/depot_tools/cros +1 -0
- data/vendor/depot_tools/cros_sdk +1 -0
- data/vendor/depot_tools/depot-tools-auth.py +3 -3
- data/vendor/depot_tools/download_from_google_storage.py +101 -21
- data/vendor/depot_tools/drover.py +2 -3
- data/vendor/depot_tools/fetch.py +31 -27
- data/vendor/depot_tools/{recipes → fetch_configs}/android.py +4 -4
- data/vendor/depot_tools/fetch_configs/breakpad.py +45 -0
- data/vendor/depot_tools/{recipes → fetch_configs}/chromium.py +3 -3
- data/vendor/depot_tools/{recipes/recipe_util.py → fetch_configs/config_util.py} +3 -3
- data/vendor/depot_tools/fetch_configs/crashpad.py +41 -0
- data/vendor/depot_tools/{recipes → fetch_configs}/dart.py +3 -3
- data/vendor/depot_tools/{recipes/pdfium.py → fetch_configs/dartino.py} +14 -13
- data/vendor/depot_tools/{recipes → fetch_configs}/dartium.py +3 -3
- data/vendor/depot_tools/{recipes → fetch_configs}/depot_tools.py +3 -3
- data/vendor/depot_tools/fetch_configs/gyp.py +42 -0
- data/vendor/depot_tools/{recipes → fetch_configs}/infra.py +3 -3
- data/vendor/depot_tools/{recipes → fetch_configs}/infra_internal.py +3 -3
- data/vendor/depot_tools/{recipes → fetch_configs}/ios.py +4 -4
- data/vendor/depot_tools/{recipes → fetch_configs}/mojo.py +3 -3
- data/vendor/depot_tools/{recipes → fetch_configs}/nacl.py +3 -3
- data/vendor/depot_tools/{recipes → fetch_configs}/naclports.py +3 -3
- data/vendor/depot_tools/fetch_configs/pdfium.py +40 -0
- data/vendor/depot_tools/{recipes → fetch_configs}/skia.py +3 -3
- data/vendor/depot_tools/{recipes → fetch_configs}/skia_buildbot.py +3 -3
- data/vendor/depot_tools/fetch_configs/syzygy.py +41 -0
- data/vendor/depot_tools/{recipes → fetch_configs}/v8.py +3 -3
- data/vendor/depot_tools/{recipes → fetch_configs}/webrtc.py +3 -3
- data/vendor/depot_tools/{recipes → fetch_configs}/webrtc_android.py +4 -4
- data/vendor/depot_tools/{recipes → fetch_configs}/webrtc_ios.py +4 -4
- data/vendor/depot_tools/fix_encoding.py +6 -6
- data/vendor/depot_tools/gcl.py +11 -21
- data/vendor/depot_tools/gclient +10 -0
- data/vendor/depot_tools/gclient-new-workdir.py +7 -38
- data/vendor/depot_tools/gclient.bat +2 -2
- data/vendor/depot_tools/gclient.py +85 -65
- data/vendor/depot_tools/gclient_scm.py +83 -10
- data/vendor/depot_tools/gclient_utils.py +5 -1
- data/vendor/depot_tools/gerrit_util.py +243 -26
- data/vendor/depot_tools/git-auto-svn +1 -1
- data/vendor/depot_tools/git-cache +1 -1
- data/vendor/depot_tools/git-cherry-pick-upload +1 -1
- data/vendor/depot_tools/git-cl +1 -1
- data/vendor/depot_tools/git-drover +6 -0
- data/vendor/depot_tools/git-find-releases +6 -0
- data/vendor/depot_tools/git-footers +1 -1
- data/vendor/depot_tools/git-freeze +1 -1
- data/vendor/depot_tools/git-gs +1 -1
- data/vendor/depot_tools/git-hyper-blame +6 -0
- data/vendor/depot_tools/git-map +1 -1
- data/vendor/depot_tools/git-map-branches +1 -1
- data/vendor/depot_tools/git-mark-merge-base +1 -1
- data/vendor/depot_tools/git-nav-downstream +1 -1
- data/vendor/depot_tools/git-new-branch +1 -1
- data/vendor/depot_tools/git-number +1 -1
- data/vendor/depot_tools/git-rebase-update +1 -1
- data/vendor/depot_tools/git-rename-branch +1 -1
- data/vendor/depot_tools/git-reparent-branch +1 -1
- data/vendor/depot_tools/git-retry +1 -1
- data/vendor/depot_tools/git-squash-branch +1 -1
- data/vendor/depot_tools/git-thaw +1 -1
- data/vendor/depot_tools/git-try +1 -1
- data/vendor/depot_tools/git-upstream-diff +1 -1
- data/vendor/depot_tools/git_auto_svn.py +24 -6
- data/vendor/depot_tools/git_cache.py +74 -27
- data/vendor/depot_tools/git_cl.py +2118 -747
- data/vendor/depot_tools/git_common.py +100 -6
- data/vendor/depot_tools/git_dates.py +62 -0
- data/vendor/depot_tools/git_drover.py +424 -0
- data/vendor/depot_tools/git_find_releases.py +65 -0
- data/vendor/depot_tools/git_footers.py +42 -0
- data/vendor/depot_tools/git_hyper_blame.py +391 -0
- data/vendor/depot_tools/git_map_branches.py +8 -6
- data/vendor/depot_tools/git_new_branch.py +6 -1
- data/vendor/depot_tools/git_rebase_update.py +56 -16
- data/vendor/depot_tools/git_reparent_branch.py +13 -0
- data/vendor/depot_tools/git_try.py +0 -2
- data/vendor/depot_tools/gsutil.py +51 -20
- data/vendor/depot_tools/infra/config/OWNERS +3 -1
- data/vendor/depot_tools/infra/config/cq.cfg +7 -3
- data/vendor/depot_tools/infra/config/recipes.cfg +9 -0
- data/vendor/depot_tools/luci_hacks/README.md +35 -0
- data/vendor/depot_tools/{bootstrap/virtualenv/tests → luci_hacks}/__init__.py +0 -0
- data/vendor/depot_tools/luci_hacks/luci_recipe_run.isolate +12 -0
- data/vendor/depot_tools/luci_hacks/luci_recipe_run.py +81 -0
- data/vendor/depot_tools/luci_hacks/trigger_luci_job.py +128 -0
- data/vendor/depot_tools/man/html/depot_tools.html +9 -1
- data/vendor/depot_tools/man/html/depot_tools_tutorial.html +4 -4
- data/vendor/depot_tools/man/html/git-drover.html +191 -35
- data/vendor/depot_tools/man/html/git-hyper-blame.html +878 -0
- data/vendor/depot_tools/man/html/git-rebase-update.html +9 -4
- data/vendor/depot_tools/man/man1/git-drover.1 +189 -36
- data/vendor/depot_tools/man/man1/git-hyper-blame.1 +128 -0
- data/vendor/depot_tools/man/man1/git-rebase-update.1 +8 -6
- data/vendor/depot_tools/man/man7/depot_tools.7 +9 -4
- data/vendor/depot_tools/man/src/_git-hyper-blame_desc.helper.txt +1 -0
- data/vendor/depot_tools/man/src/common_demo_functions.sh +5 -0
- data/vendor/depot_tools/man/src/depot_tools_tutorial.txt +1 -1
- data/vendor/depot_tools/man/src/git-drover.demo.1.sh +11 -16
- data/vendor/depot_tools/man/src/git-drover.demo.3.sh +27 -0
- data/vendor/depot_tools/man/src/git-drover.demo.4.sh +39 -0
- data/vendor/depot_tools/man/src/git-drover.txt +49 -3
- data/vendor/depot_tools/man/src/git-hyper-blame.demo.1.sh +3 -0
- data/vendor/depot_tools/man/src/git-hyper-blame.demo.2.sh +4 -0
- data/vendor/depot_tools/man/src/git-hyper-blame.demo.common.sh +57 -0
- data/vendor/depot_tools/man/src/git-hyper-blame.txt +85 -0
- data/vendor/depot_tools/man/src/git-rebase-update.txt +5 -1
- data/vendor/depot_tools/my_activity.py +6 -21
- data/vendor/depot_tools/ninja +2 -2
- data/vendor/depot_tools/ninja-linux32 +0 -0
- data/vendor/depot_tools/ninja-linux64 +0 -0
- data/vendor/depot_tools/ninja-mac +0 -0
- data/vendor/depot_tools/ninja.exe +0 -0
- data/vendor/depot_tools/presubmit_canned_checks.py +83 -69
- data/vendor/depot_tools/presubmit_support.py +126 -42
- data/vendor/depot_tools/pylint.py +5 -1
- data/vendor/depot_tools/python_runner.sh +55 -0
- data/vendor/depot_tools/recipe_modules/bot_update/__init__.py +32 -0
- data/vendor/depot_tools/recipe_modules/bot_update/api.py +283 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/basic.json +56 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/basic_output_manifest.json +63 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/basic_with_branch_heads.json +57 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/clobber.json +44 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/forced.json +57 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/gerrit_no_reset.json +44 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/no_shallow.json +44 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/off.json +43 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/reset_root_solution_revision.json +43 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/svn_mode.json +59 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/trychange.json +58 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/trychange_oauth2.json +60 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob.json +58 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_fail.json +60 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_fail_patch.json +81 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_fail_patch_download.json +81 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_gerrit_angle.json +49 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_v8.json +61 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_v8_head_by_default.json +51 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.py +172 -0
- data/vendor/depot_tools/{bootstrap/virtualenv/virtualenv_support → recipe_modules/bot_update/resources}/__init__.py +0 -0
- data/vendor/depot_tools/recipe_modules/bot_update/resources/bot_update.py +1764 -0
- data/vendor/depot_tools/recipe_modules/bot_update/test_api.py +86 -0
- data/vendor/depot_tools/recipe_modules/depot_tools/__init__.py +3 -0
- data/vendor/depot_tools/recipe_modules/depot_tools/api.py +27 -0
- data/vendor/depot_tools/recipe_modules/gclient/__init__.py +10 -0
- data/vendor/depot_tools/recipe_modules/gclient/api.py +378 -0
- data/vendor/depot_tools/recipe_modules/gclient/config.py +671 -0
- data/vendor/depot_tools/recipe_modules/gclient/example.expected/basic.json +172 -0
- data/vendor/depot_tools/recipe_modules/gclient/example.expected/revision.json +174 -0
- data/vendor/depot_tools/recipe_modules/gclient/example.expected/tryserver.json +185 -0
- data/vendor/depot_tools/recipe_modules/gclient/example.py +100 -0
- data/vendor/depot_tools/recipe_modules/gclient/test_api.py +37 -0
- data/vendor/depot_tools/recipe_modules/git/__init__.py +9 -0
- data/vendor/depot_tools/recipe_modules/git/api.py +377 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/basic.json +177 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/basic_branch.json +177 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/basic_file_name.json +179 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/basic_hash.json +176 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/basic_ref.json +177 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/basic_submodule_update_force.json +178 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/can_fail_build.json +153 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/cannot_fail_build.json +181 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/cat-file_test.json +199 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_delta.json +250 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_failed.json +181 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_with_bad_output.json +182 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_with_bad_output_fails_build.json +102 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/curl_trace_file.json +181 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/platform_win.json +186 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/rebase_failed.json +179 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/remote_not_origin.json +179 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/set_got_revision.json +178 -0
- data/vendor/depot_tools/recipe_modules/git/example.py +147 -0
- data/vendor/depot_tools/recipe_modules/git/resources/git_setup.py +61 -0
- data/vendor/depot_tools/recipe_modules/git/test_api.py +18 -0
- data/vendor/depot_tools/recipe_modules/git_cl/__init__.py +4 -0
- data/vendor/depot_tools/recipe_modules/git_cl/api.py +25 -0
- data/vendor/depot_tools/recipe_modules/git_cl/config.py +22 -0
- data/vendor/depot_tools/recipe_modules/git_cl/example.expected/basic.json +66 -0
- data/vendor/depot_tools/recipe_modules/git_cl/example.py +41 -0
- data/vendor/depot_tools/recipe_modules/infra_paths/__init__.py +4 -0
- data/vendor/depot_tools/recipe_modules/infra_paths/api.py +12 -0
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/basic.json +14 -0
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_buildbot_linux.json +14 -0
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_buildbot_mac.json +14 -0
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_buildbot_win.json +14 -0
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_kitchen_linux.json +14 -0
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_kitchen_mac.json +14 -0
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_kitchen_win.json +14 -0
- data/vendor/depot_tools/recipe_modules/infra_paths/example.py +28 -0
- data/vendor/depot_tools/recipe_modules/infra_paths/path_config.py +45 -0
- data/vendor/depot_tools/recipe_modules/presubmit/__init__.py +4 -0
- data/vendor/depot_tools/recipe_modules/presubmit/api.py +20 -0
- data/vendor/depot_tools/recipe_modules/presubmit/example.expected/basic.json +18 -0
- data/vendor/depot_tools/recipe_modules/presubmit/example.py +15 -0
- data/vendor/depot_tools/recipe_modules/rietveld/__init__.py +5 -0
- data/vendor/depot_tools/recipe_modules/rietveld/api.py +94 -0
- data/vendor/depot_tools/recipe_modules/rietveld/example.expected/basic.json +30 -0
- data/vendor/depot_tools/recipe_modules/rietveld/example.py +24 -0
- data/vendor/depot_tools/recipe_modules/tryserver/__init__.py +15 -0
- data/vendor/depot_tools/recipe_modules/tryserver/api.py +280 -0
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_git_patch.json +104 -0
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_rietveld_patch.json +58 -0
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_rietveld_patch_new.json +58 -0
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_svn_patch.json +68 -0
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_wrong_patch.json +43 -0
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_wrong_patch_new.json +43 -0
- data/vendor/depot_tools/recipe_modules/tryserver/example.py +53 -0
- data/vendor/depot_tools/recipe_modules/tryserver/test_api.py +7 -0
- data/vendor/depot_tools/recipes.py +136 -0
- data/vendor/depot_tools/repo +1 -1
- data/vendor/depot_tools/rietveld.py +46 -15
- data/vendor/depot_tools/roll_dep.py +97 -36
- data/vendor/depot_tools/scm.py +3 -3
- data/vendor/depot_tools/setup_color.py +94 -0
- data/vendor/depot_tools/subprocess2.py +10 -1
- data/vendor/depot_tools/third_party/cq_client/OWNERS +0 -1
- data/vendor/depot_tools/third_party/cq_client/README.md +47 -9
- data/vendor/depot_tools/third_party/cq_client/cq.pb.go +617 -0
- data/vendor/depot_tools/third_party/cq_client/cq.proto +75 -17
- data/vendor/depot_tools/third_party/cq_client/cq_pb2.py +168 -41
- data/vendor/depot_tools/third_party/cq_client/testdata/cq_gerrit.cfg +55 -0
- data/vendor/depot_tools/third_party/cq_client/{test/cq_example.cfg → testdata/cq_rietveld.cfg} +14 -6
- data/vendor/depot_tools/third_party/fancy_urllib/README +5 -4
- data/vendor/depot_tools/third_party/fancy_urllib/__init__.py +114 -52
- data/vendor/depot_tools/third_party/protobuf26/README.chromium +9 -6
- data/vendor/depot_tools/third_party/upload.py +17 -31
- data/vendor/depot_tools/trychange.py +0 -2
- data/vendor/depot_tools/update_depot_tools +29 -11
- data/vendor/depot_tools/update_depot_tools.bat +4 -9
- data/vendor/depot_tools/upload_to_google_storage.py +42 -5
- data/vendor/depot_tools/win_toolchain/OWNERS +1 -0
- data/vendor/depot_tools/win_toolchain/get_toolchain_if_necessary.py +227 -52
- data/vendor/depot_tools/win_toolchain/package_from_installed.py +203 -88
- metadata +161 -81
- data/patches/arm/do-not-imply-vfp3-and-armv7.patch +0 -16
- data/patches/arm/do-not-use-vfp2.patch +0 -13
- data/patches/clang51/no-unused-variable.patch +0 -12
- data/vendor/depot_tools/bootstrap/.gitignore +0 -2
- data/vendor/depot_tools/bootstrap/bootstrap.py +0 -234
- data/vendor/depot_tools/bootstrap/deps.pyl +0 -15
- data/vendor/depot_tools/bootstrap/util.py +0 -87
- data/vendor/depot_tools/bootstrap/virtualenv/.gitignore +0 -10
- data/vendor/depot_tools/bootstrap/virtualenv/.travis.yml +0 -28
- data/vendor/depot_tools/bootstrap/virtualenv/AUTHORS.txt +0 -91
- data/vendor/depot_tools/bootstrap/virtualenv/CONTRIBUTING.rst +0 -21
- data/vendor/depot_tools/bootstrap/virtualenv/LICENSE.txt +0 -22
- data/vendor/depot_tools/bootstrap/virtualenv/MANIFEST.in +0 -11
- data/vendor/depot_tools/bootstrap/virtualenv/README.rst +0 -10
- data/vendor/depot_tools/bootstrap/virtualenv/bin/rebuild-script.py +0 -71
- data/vendor/depot_tools/bootstrap/virtualenv/docs/changes.rst +0 -747
- data/vendor/depot_tools/bootstrap/virtualenv/docs/conf.py +0 -149
- data/vendor/depot_tools/bootstrap/virtualenv/docs/development.rst +0 -61
- data/vendor/depot_tools/bootstrap/virtualenv/docs/index.rst +0 -137
- data/vendor/depot_tools/bootstrap/virtualenv/docs/installation.rst +0 -58
- data/vendor/depot_tools/bootstrap/virtualenv/docs/make.bat +0 -170
- data/vendor/depot_tools/bootstrap/virtualenv/docs/reference.rst +0 -256
- data/vendor/depot_tools/bootstrap/virtualenv/docs/userguide.rst +0 -249
- data/vendor/depot_tools/bootstrap/virtualenv/scripts/virtualenv +0 -3
- data/vendor/depot_tools/bootstrap/virtualenv/setup.py +0 -111
- data/vendor/depot_tools/bootstrap/virtualenv/tests/test_activate.sh +0 -94
- data/vendor/depot_tools/bootstrap/virtualenv/tests/test_activate_expected.output +0 -2
- data/vendor/depot_tools/bootstrap/virtualenv/tests/test_virtualenv.py +0 -139
- data/vendor/depot_tools/bootstrap/virtualenv/tests/tox.ini +0 -12
- data/vendor/depot_tools/bootstrap/virtualenv/tox.ini +0 -17
- data/vendor/depot_tools/bootstrap/virtualenv/virtualenv.py +0 -2367
- data/vendor/depot_tools/bootstrap/virtualenv/virtualenv_embedded/activate.bat +0 -26
- data/vendor/depot_tools/bootstrap/virtualenv/virtualenv_embedded/activate.csh +0 -42
- data/vendor/depot_tools/bootstrap/virtualenv/virtualenv_embedded/activate.fish +0 -74
- data/vendor/depot_tools/bootstrap/virtualenv/virtualenv_embedded/activate.ps1 +0 -150
- data/vendor/depot_tools/bootstrap/virtualenv/virtualenv_embedded/activate.sh +0 -80
- data/vendor/depot_tools/bootstrap/virtualenv/virtualenv_embedded/activate_this.py +0 -34
- data/vendor/depot_tools/bootstrap/virtualenv/virtualenv_embedded/deactivate.bat +0 -20
- data/vendor/depot_tools/bootstrap/virtualenv/virtualenv_embedded/distutils-init.py +0 -101
- data/vendor/depot_tools/bootstrap/virtualenv/virtualenv_embedded/distutils.cfg +0 -6
- data/vendor/depot_tools/bootstrap/virtualenv/virtualenv_embedded/site.py +0 -758
- data/vendor/depot_tools/bootstrap/virtualenv/virtualenv_support/pip-6.0-py2.py3-none-any.whl +0 -0
- data/vendor/depot_tools/bootstrap/virtualenv/virtualenv_support/setuptools-8.2.1-py2.py3-none-any.whl +0 -0
- data/vendor/depot_tools/bootstrap/win/README.google +0 -16
- data/vendor/depot_tools/cbuildbot +0 -96
- data/vendor/depot_tools/chrome_set_ver +0 -96
- data/vendor/depot_tools/cros +0 -96
- data/vendor/depot_tools/cros_sdk +0 -96
- data/vendor/depot_tools/git-cl-upload-hook +0 -52
- data/vendor/depot_tools/git-crup +0 -45
- data/vendor/depot_tools/python_git_runner.sh +0 -36
- data/vendor/depot_tools/recipes/blink.py +0 -59
- data/vendor/depot_tools/third_party/cq_client/test/validate_config_test.py +0 -52
- data/vendor/depot_tools/third_party/cq_client/validate_config.py +0 -108
- data/vendor/depot_tools/win_toolchain/toolchain2013.py +0 -494
@@ -1,256 +0,0 @@
|
|
1
|
-
Reference Guide
|
2
|
-
===============
|
3
|
-
|
4
|
-
``virtualenv`` Command
|
5
|
-
----------------------
|
6
|
-
|
7
|
-
.. _usage:
|
8
|
-
|
9
|
-
Usage
|
10
|
-
~~~~~
|
11
|
-
|
12
|
-
:command:`virtualenv [OPTIONS] ENV_DIR`
|
13
|
-
|
14
|
-
Where ``ENV_DIR`` is an absolute or relative path to a directory to create
|
15
|
-
the virtual environment in.
|
16
|
-
|
17
|
-
.. _options:
|
18
|
-
|
19
|
-
Options
|
20
|
-
~~~~~~~
|
21
|
-
|
22
|
-
.. program: virtualenv
|
23
|
-
|
24
|
-
.. option:: --version
|
25
|
-
|
26
|
-
show program's version number and exit
|
27
|
-
|
28
|
-
.. option:: -h, --help
|
29
|
-
|
30
|
-
show this help message and exit
|
31
|
-
|
32
|
-
.. option:: -v, --verbose
|
33
|
-
|
34
|
-
Increase verbosity.
|
35
|
-
|
36
|
-
.. option:: -q, --quiet
|
37
|
-
|
38
|
-
Decrease verbosity.
|
39
|
-
|
40
|
-
.. option:: -p PYTHON_EXE, --python=PYTHON_EXE
|
41
|
-
|
42
|
-
The Python interpreter to use, e.g.,
|
43
|
-
--python=python2.5 will use the python2.5 interpreter
|
44
|
-
to create the new environment. The default is the
|
45
|
-
interpreter that virtualenv was installed with
|
46
|
-
(like ``/usr/bin/python``)
|
47
|
-
|
48
|
-
.. option:: --clear
|
49
|
-
|
50
|
-
Clear out the non-root install and start from scratch.
|
51
|
-
|
52
|
-
.. option:: --system-site-packages
|
53
|
-
|
54
|
-
Give the virtual environment access to the global
|
55
|
-
site-packages.
|
56
|
-
|
57
|
-
.. option:: --always-copy
|
58
|
-
|
59
|
-
Always copy files rather than symlinking.
|
60
|
-
|
61
|
-
.. option:: --relocatable
|
62
|
-
|
63
|
-
Make an EXISTING virtualenv environment relocatable.
|
64
|
-
This fixes up scripts and makes all .pth files relative.
|
65
|
-
|
66
|
-
.. option:: --unzip-setuptools
|
67
|
-
|
68
|
-
Unzip Setuptools when installing it.
|
69
|
-
|
70
|
-
.. option:: --no-setuptools
|
71
|
-
|
72
|
-
Do not install setuptools (or pip) in the new
|
73
|
-
virtualenv.
|
74
|
-
|
75
|
-
.. option:: --no-pip
|
76
|
-
|
77
|
-
Do not install pip in the new virtualenv.
|
78
|
-
|
79
|
-
.. option:: --extra-search-dir=DIR
|
80
|
-
|
81
|
-
Directory to look for setuptools/pip distributions in.
|
82
|
-
This option can be specified multiple times.
|
83
|
-
|
84
|
-
.. option:: --prompt=PROMPT
|
85
|
-
|
86
|
-
Provides an alternative prompt prefix for this
|
87
|
-
environment.
|
88
|
-
|
89
|
-
.. option:: --never-download
|
90
|
-
|
91
|
-
DEPRECATED. Retained only for backward compatibility.
|
92
|
-
This option has no effect. Virtualenv never downloads
|
93
|
-
pip or setuptools.
|
94
|
-
|
95
|
-
.. option:: --no-site-packages
|
96
|
-
|
97
|
-
DEPRECATED. Retained only for backward compatibility.
|
98
|
-
Not having access to global site-packages is now the
|
99
|
-
default behavior.
|
100
|
-
|
101
|
-
.. option:: --distribute
|
102
|
-
.. option:: --setuptools
|
103
|
-
|
104
|
-
Legacy; now have no effect. Before version 1.10 these could be used
|
105
|
-
to choose whether to install Distribute_ or Setuptools_ into the created
|
106
|
-
virtualenv. Distribute has now been merged into Setuptools, and the
|
107
|
-
latter is always installed.
|
108
|
-
|
109
|
-
.. _Distribute: https://pypi.python.org/pypi/distribute
|
110
|
-
.. _Setuptools: https://pypi.python.org/pypi/setuptools
|
111
|
-
|
112
|
-
|
113
|
-
Configuration
|
114
|
-
-------------
|
115
|
-
|
116
|
-
Environment Variables
|
117
|
-
~~~~~~~~~~~~~~~~~~~~~
|
118
|
-
|
119
|
-
Each command line option is automatically used to look for environment
|
120
|
-
variables with the name format ``VIRTUALENV_<UPPER_NAME>``. That means
|
121
|
-
the name of the command line options are capitalized and have dashes
|
122
|
-
(``'-'``) replaced with underscores (``'_'``).
|
123
|
-
|
124
|
-
For example, to automatically use a custom Python binary instead of the
|
125
|
-
one virtualenv is run with you can also set an environment variable::
|
126
|
-
|
127
|
-
$ export VIRTUALENV_PYTHON=/opt/python-3.3/bin/python
|
128
|
-
$ virtualenv ENV
|
129
|
-
|
130
|
-
It's the same as passing the option to virtualenv directly::
|
131
|
-
|
132
|
-
$ virtualenv --python=/opt/python-3.3/bin/python ENV
|
133
|
-
|
134
|
-
This also works for appending command line options, like ``--find-links``.
|
135
|
-
Just leave an empty space between the passed values, e.g.::
|
136
|
-
|
137
|
-
$ export VIRTUALENV_EXTRA_SEARCH_DIR="/path/to/dists /path/to/other/dists"
|
138
|
-
$ virtualenv ENV
|
139
|
-
|
140
|
-
is the same as calling::
|
141
|
-
|
142
|
-
$ virtualenv --extra-search-dir=/path/to/dists --extra-search-dir=/path/to/other/dists ENV
|
143
|
-
|
144
|
-
.. envvar:: VIRTUAL_ENV_DISABLE_PROMPT
|
145
|
-
|
146
|
-
Any virtualenv created when this is set to a non-empty value will not have
|
147
|
-
it's :ref:`activate` modify the shell prompt.
|
148
|
-
|
149
|
-
|
150
|
-
Configuration File
|
151
|
-
~~~~~~~~~~~~~~~~~~
|
152
|
-
|
153
|
-
virtualenv also looks for a standard ini config file. On Unix and Mac OS X
|
154
|
-
that's ``$HOME/.virtualenv/virtualenv.ini`` and on Windows, it's
|
155
|
-
``%APPDATA%\virtualenv\virtualenv.ini``.
|
156
|
-
|
157
|
-
The names of the settings are derived from the long command line option,
|
158
|
-
e.g. the option :option:`--python <-p>` would look like this::
|
159
|
-
|
160
|
-
[virtualenv]
|
161
|
-
python = /opt/python-3.3/bin/python
|
162
|
-
|
163
|
-
Appending options like :option:`--extra-search-dir` can be written on multiple
|
164
|
-
lines::
|
165
|
-
|
166
|
-
[virtualenv]
|
167
|
-
extra-search-dir =
|
168
|
-
/path/to/dists
|
169
|
-
/path/to/other/dists
|
170
|
-
|
171
|
-
Please have a look at the output of :option:`--help <-h>` for a full list
|
172
|
-
of supported options.
|
173
|
-
|
174
|
-
|
175
|
-
Extending Virtualenv
|
176
|
-
--------------------
|
177
|
-
|
178
|
-
|
179
|
-
Creating Your Own Bootstrap Scripts
|
180
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
181
|
-
|
182
|
-
While this creates an environment, it doesn't put anything into the
|
183
|
-
environment. Developers may find it useful to distribute a script
|
184
|
-
that sets up a particular environment, for example a script that
|
185
|
-
installs a particular web application.
|
186
|
-
|
187
|
-
To create a script like this, call
|
188
|
-
:py:func:`virtualenv.create_bootstrap_script`, and write the
|
189
|
-
result to your new bootstrapping script.
|
190
|
-
|
191
|
-
.. py:function:: create_bootstrap_script(extra_text)
|
192
|
-
|
193
|
-
Creates a bootstrap script from ``extra_text``, which is like
|
194
|
-
this script but with extend_parser, adjust_options, and after_install hooks.
|
195
|
-
|
196
|
-
This returns a string that (written to disk of course) can be used
|
197
|
-
as a bootstrap script with your own customizations. The script
|
198
|
-
will be the standard virtualenv.py script, with your extra text
|
199
|
-
added (your extra text should be Python code).
|
200
|
-
|
201
|
-
If you include these functions, they will be called:
|
202
|
-
|
203
|
-
.. py:function:: extend_parser(optparse_parser)
|
204
|
-
|
205
|
-
You can add or remove options from the parser here.
|
206
|
-
|
207
|
-
.. py:function:: adjust_options(options, args)
|
208
|
-
|
209
|
-
You can change options here, or change the args (if you accept
|
210
|
-
different kinds of arguments, be sure you modify ``args`` so it is
|
211
|
-
only ``[DEST_DIR]``).
|
212
|
-
|
213
|
-
.. py:function:: after_install(options, home_dir)
|
214
|
-
|
215
|
-
After everything is installed, this function is called. This
|
216
|
-
is probably the function you are most likely to use. An
|
217
|
-
example would be::
|
218
|
-
|
219
|
-
def after_install(options, home_dir):
|
220
|
-
if sys.platform == 'win32':
|
221
|
-
bin = 'Scripts'
|
222
|
-
else:
|
223
|
-
bin = 'bin'
|
224
|
-
subprocess.call([join(home_dir, bin, 'easy_install'),
|
225
|
-
'MyPackage'])
|
226
|
-
subprocess.call([join(home_dir, bin, 'my-package-script'),
|
227
|
-
'setup', home_dir])
|
228
|
-
|
229
|
-
This example immediately installs a package, and runs a setup
|
230
|
-
script from that package.
|
231
|
-
|
232
|
-
Bootstrap Example
|
233
|
-
~~~~~~~~~~~~~~~~~
|
234
|
-
|
235
|
-
Here's a more concrete example of how you could use this::
|
236
|
-
|
237
|
-
import virtualenv, textwrap
|
238
|
-
output = virtualenv.create_bootstrap_script(textwrap.dedent("""
|
239
|
-
import os, subprocess
|
240
|
-
def after_install(options, home_dir):
|
241
|
-
etc = join(home_dir, 'etc')
|
242
|
-
if not os.path.exists(etc):
|
243
|
-
os.makedirs(etc)
|
244
|
-
subprocess.call([join(home_dir, 'bin', 'easy_install'),
|
245
|
-
'BlogApplication'])
|
246
|
-
subprocess.call([join(home_dir, 'bin', 'paster'),
|
247
|
-
'make-config', 'BlogApplication',
|
248
|
-
join(etc, 'blog.ini')])
|
249
|
-
subprocess.call([join(home_dir, 'bin', 'paster'),
|
250
|
-
'setup-app', join(etc, 'blog.ini')])
|
251
|
-
"""))
|
252
|
-
f = open('blog-bootstrap.py', 'w').write(output)
|
253
|
-
|
254
|
-
Another example is available `here`__.
|
255
|
-
|
256
|
-
.. __: https://github.com/socialplanning/fassembler/blob/master/fassembler/create-venv-script.py
|
@@ -1,249 +0,0 @@
|
|
1
|
-
User Guide
|
2
|
-
==========
|
3
|
-
|
4
|
-
|
5
|
-
Usage
|
6
|
-
-----
|
7
|
-
|
8
|
-
Virtualenv has one basic command::
|
9
|
-
|
10
|
-
$ virtualenv ENV
|
11
|
-
|
12
|
-
Where ``ENV`` is a directory to place the new virtual environment. It has
|
13
|
-
a number of usual effects (modifiable by many :ref:`options`):
|
14
|
-
|
15
|
-
- :file:`ENV/lib/` and :file:`ENV/include/` are created, containing supporting
|
16
|
-
library files for a new virtualenv python. Packages installed in this
|
17
|
-
environment will live under :file:`ENV/lib/pythonX.X/site-packages/`.
|
18
|
-
|
19
|
-
- :file:`ENV/bin` is created, where executables live - noticeably a new
|
20
|
-
:command:`python`. Thus running a script with ``#! /path/to/ENV/bin/python``
|
21
|
-
would run that script under this virtualenv's python.
|
22
|
-
|
23
|
-
- The crucial packages pip_ and setuptools_ are installed, which allow other
|
24
|
-
packages to be easily installed to the environment. This associated pip
|
25
|
-
can be run from :file:`ENV/bin/pip`.
|
26
|
-
|
27
|
-
The python in your new virtualenv is effectively isolated from the python that
|
28
|
-
was used to create it.
|
29
|
-
|
30
|
-
.. _pip: https://pypi.python.org/pypi/pip
|
31
|
-
.. _setuptools: https://pypi.python.org/pypi/setuptools
|
32
|
-
|
33
|
-
|
34
|
-
.. _activate:
|
35
|
-
|
36
|
-
activate script
|
37
|
-
~~~~~~~~~~~~~~~
|
38
|
-
|
39
|
-
In a newly created virtualenv there will also be a :command:`activate` shell
|
40
|
-
script. For Windows systems, activation scripts are provided for
|
41
|
-
the Command Prompt and Powershell.
|
42
|
-
|
43
|
-
On Posix systems, this resides in :file:`/ENV/bin/`, so you can run::
|
44
|
-
|
45
|
-
$ source bin/activate
|
46
|
-
|
47
|
-
For some shells (e.g. the original Bourne Shell) you may need to use the
|
48
|
-
:command:`.` command, when :command:`source` does not exist.
|
49
|
-
|
50
|
-
This will change your ``$PATH`` so its first entry is the virtualenv's
|
51
|
-
``bin/`` directory. (You have to use ``source`` because it changes your
|
52
|
-
shell environment in-place.) This is all it does; it's purely a
|
53
|
-
convenience. If you directly run a script or the python interpreter
|
54
|
-
from the virtualenv's ``bin/`` directory (e.g. ``path/to/ENV/bin/pip``
|
55
|
-
or ``/path/to/ENV/bin/python-script.py``) there's no need for
|
56
|
-
activation.
|
57
|
-
|
58
|
-
The ``activate`` script will also modify your shell prompt to indicate
|
59
|
-
which environment is currently active. To disable this behaviour, see
|
60
|
-
:envvar:`VIRTUAL_ENV_DISABLE_PROMPT`.
|
61
|
-
|
62
|
-
To undo these changes to your path (and prompt), just run::
|
63
|
-
|
64
|
-
$ deactivate
|
65
|
-
|
66
|
-
On Windows, the equivalent `activate` script is in the ``Scripts`` folder::
|
67
|
-
|
68
|
-
> \path\to\env\Scripts\activate
|
69
|
-
|
70
|
-
And type ``deactivate`` to undo the changes.
|
71
|
-
|
72
|
-
Based on your active shell (CMD.exe or Powershell.exe), Windows will use
|
73
|
-
either activate.bat or activate.ps1 (as appropriate) to activate the
|
74
|
-
virtual environment. If using Powershell, see the notes about code signing
|
75
|
-
below.
|
76
|
-
|
77
|
-
.. note::
|
78
|
-
|
79
|
-
If using Powershell, the ``activate`` script is subject to the
|
80
|
-
`execution policies`_ on the system. By default on Windows 7, the system's
|
81
|
-
excution policy is set to ``Restricted``, meaning no scripts like the
|
82
|
-
``activate`` script are allowed to be executed. But that can't stop us
|
83
|
-
from changing that slightly to allow it to be executed.
|
84
|
-
|
85
|
-
In order to use the script, you can relax your system's execution
|
86
|
-
policy to ``AllSigned``, meaning all scripts on the system must be
|
87
|
-
digitally signed to be executed. Since the virtualenv activation
|
88
|
-
script is signed by one of the authors (Jannis Leidel) this level of
|
89
|
-
the execution policy suffices. As an administrator run::
|
90
|
-
|
91
|
-
PS C:\> Set-ExecutionPolicy AllSigned
|
92
|
-
|
93
|
-
Then you'll be asked to trust the signer, when executing the script.
|
94
|
-
You will be prompted with the following::
|
95
|
-
|
96
|
-
PS C:\> virtualenv .\foo
|
97
|
-
New python executable in C:\foo\Scripts\python.exe
|
98
|
-
Installing setuptools................done.
|
99
|
-
Installing pip...................done.
|
100
|
-
PS C:\> .\foo\scripts\activate
|
101
|
-
|
102
|
-
Do you want to run software from this untrusted publisher?
|
103
|
-
File C:\foo\scripts\activate.ps1 is published by E=jannis@leidel.info,
|
104
|
-
CN=Jannis Leidel, L=Berlin, S=Berlin, C=DE, Description=581796-Gh7xfJxkxQSIO4E0
|
105
|
-
and is not trusted on your system. Only run scripts from trusted publishers.
|
106
|
-
[V] Never run [D] Do not run [R] Run once [A] Always run [?] Help
|
107
|
-
(default is "D"):A
|
108
|
-
(foo) PS C:\>
|
109
|
-
|
110
|
-
If you select ``[A] Always Run``, the certificate will be added to the
|
111
|
-
Trusted Publishers of your user account, and will be trusted in this
|
112
|
-
user's context henceforth. If you select ``[R] Run Once``, the script will
|
113
|
-
be run, but you will be prometed on a subsequent invocation. Advanced users
|
114
|
-
can add the signer's certificate to the Trusted Publishers of the Computer
|
115
|
-
account to apply to all users (though this technique is out of scope of this
|
116
|
-
document).
|
117
|
-
|
118
|
-
Alternatively, you may relax the system execution policy to allow running
|
119
|
-
of local scripts without verifying the code signature using the following::
|
120
|
-
|
121
|
-
PS C:\> Set-ExecutionPolicy RemoteSigned
|
122
|
-
|
123
|
-
Since the ``activate.ps1`` script is generated locally for each virtualenv,
|
124
|
-
it is not considered a remote script and can then be executed.
|
125
|
-
|
126
|
-
.. _`execution policies`: http://technet.microsoft.com/en-us/library/dd347641.aspx
|
127
|
-
|
128
|
-
The :option:`--system-site-packages` Option
|
129
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
130
|
-
|
131
|
-
If you build with ``virtualenv --system-site-packages ENV``, your virtual
|
132
|
-
environment will inherit packages from ``/usr/lib/python2.7/site-packages``
|
133
|
-
(or wherever your global site-packages directory is).
|
134
|
-
|
135
|
-
This can be used if you have control over the global site-packages directory,
|
136
|
-
and you want to depend on the packages there. If you want isolation from the
|
137
|
-
global system, do not use this flag.
|
138
|
-
|
139
|
-
Windows Notes
|
140
|
-
~~~~~~~~~~~~~
|
141
|
-
|
142
|
-
Some paths within the virtualenv are slightly different on Windows: scripts and
|
143
|
-
executables on Windows go in ``ENV\Scripts\`` instead of ``ENV/bin/`` and
|
144
|
-
libraries go in ``ENV\Lib\`` rather than ``ENV/lib/``.
|
145
|
-
|
146
|
-
To create a virtualenv under a path with spaces in it on Windows, you'll need
|
147
|
-
the `win32api <http://sourceforge.net/projects/pywin32/>`_ library installed.
|
148
|
-
|
149
|
-
|
150
|
-
Using Virtualenv without ``bin/python``
|
151
|
-
---------------------------------------
|
152
|
-
|
153
|
-
Sometimes you can't or don't want to use the Python interpreter
|
154
|
-
created by the virtualenv. For instance, in a `mod_python
|
155
|
-
<http://www.modpython.org/>`_ or `mod_wsgi <http://www.modwsgi.org/>`_
|
156
|
-
environment, there is only one interpreter.
|
157
|
-
|
158
|
-
Luckily, it's easy. You must use the custom Python interpreter to
|
159
|
-
*install* libraries. But to *use* libraries, you just have to be sure
|
160
|
-
the path is correct. A script is available to correct the path. You
|
161
|
-
can setup the environment like::
|
162
|
-
|
163
|
-
activate_this = '/path/to/env/bin/activate_this.py'
|
164
|
-
execfile(activate_this, dict(__file__=activate_this))
|
165
|
-
|
166
|
-
This will change ``sys.path`` and even change ``sys.prefix``, but also allow
|
167
|
-
you to use an existing interpreter. Items in your environment will show up
|
168
|
-
first on ``sys.path``, before global items. However, global items will
|
169
|
-
always be accessible (as if the :option:`--system-site-packages` flag had been
|
170
|
-
used in creating the environment, whether it was or not). Also, this cannot undo
|
171
|
-
the activation of other environments, or modules that have been imported.
|
172
|
-
You shouldn't try to, for instance, activate an environment before a web
|
173
|
-
request; you should activate *one* environment as early as possible, and not
|
174
|
-
do it again in that process.
|
175
|
-
|
176
|
-
Making Environments Relocatable
|
177
|
-
-------------------------------
|
178
|
-
|
179
|
-
**Note:** this option is somewhat experimental, and there are probably
|
180
|
-
caveats that have not yet been identified.
|
181
|
-
|
182
|
-
.. warning::
|
183
|
-
|
184
|
-
The ``--relocatable`` option currently has a number of issues,
|
185
|
-
and is not guaranteed to work in all circumstances. It is possible
|
186
|
-
that the option will be deprecated in a future version of ``virtualenv``.
|
187
|
-
|
188
|
-
Normally environments are tied to a specific path. That means that
|
189
|
-
you cannot move an environment around or copy it to another computer.
|
190
|
-
You can fix up an environment to make it relocatable with the
|
191
|
-
command::
|
192
|
-
|
193
|
-
$ virtualenv --relocatable ENV
|
194
|
-
|
195
|
-
This will make some of the files created by setuptools use relative paths,
|
196
|
-
and will change all the scripts to use ``activate_this.py`` instead of using
|
197
|
-
the location of the Python interpreter to select the environment.
|
198
|
-
|
199
|
-
**Note:** scripts which have been made relocatable will only work if
|
200
|
-
the virtualenv is activated, specifically the python executable from
|
201
|
-
the virtualenv must be the first one on the system PATH. Also note that
|
202
|
-
the activate scripts are not currently made relocatable by
|
203
|
-
``virtualenv --relocatable``.
|
204
|
-
|
205
|
-
**Note:** you must run this after you've installed *any* packages into
|
206
|
-
the environment. If you make an environment relocatable, then
|
207
|
-
install a new package, you must run ``virtualenv --relocatable``
|
208
|
-
again.
|
209
|
-
|
210
|
-
Also, this **does not make your packages cross-platform**. You can
|
211
|
-
move the directory around, but it can only be used on other similar
|
212
|
-
computers. Some known environmental differences that can cause
|
213
|
-
incompatibilities: a different version of Python, when one platform
|
214
|
-
uses UCS2 for its internal unicode representation and another uses
|
215
|
-
UCS4 (a compile-time option), obvious platform changes like Windows
|
216
|
-
vs. Linux, or Intel vs. ARM, and if you have libraries that bind to C
|
217
|
-
libraries on the system, if those C libraries are located somewhere
|
218
|
-
different (either different versions, or a different filesystem
|
219
|
-
layout).
|
220
|
-
|
221
|
-
If you use this flag to create an environment, currently, the
|
222
|
-
:option:`--system-site-packages` option will be implied.
|
223
|
-
|
224
|
-
The :option:`--extra-search-dir` option
|
225
|
-
---------------------------------------
|
226
|
-
|
227
|
-
This option allows you to provide your own versions of setuptools and/or
|
228
|
-
pip to use instead of the embedded versions that come with virtualenv.
|
229
|
-
|
230
|
-
To use this feature, pass one or more ``--extra-search-dir`` options to
|
231
|
-
virtualenv like this::
|
232
|
-
|
233
|
-
$ virtualenv --extra-search-dir=/path/to/distributions ENV
|
234
|
-
|
235
|
-
The ``/path/to/distributions`` path should point to a directory that contains
|
236
|
-
setuptools and/or pip wheels.
|
237
|
-
|
238
|
-
virtualenv will look for wheels in the specified directories, but will use
|
239
|
-
pip's standard algorithm for selecting the wheel to install, which looks for
|
240
|
-
the latest compatible wheel.
|
241
|
-
|
242
|
-
As well as the extra directories, the search order includes:
|
243
|
-
|
244
|
-
#. The ``virtualenv_support`` directory relative to virtualenv.py
|
245
|
-
#. The directory where virtualenv.py is located.
|
246
|
-
#. The current directory.
|
247
|
-
|
248
|
-
If no satisfactory local distributions are found, virtualenv will
|
249
|
-
fail. Virtualenv will never download packages.
|