pex is a library for generating .pex (Python EXecutable) files which are
executable Python environments in the spirit of virtualenvs.
pex is an expansion upon the ideas outlined in
PEP 441
and makes the deployment of Python applications as simple as cp
. pex files may even
This file contains hidden or 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
[omerta ~]$ python2.7 | |
Python 2.7.13 (default, Mar 2 2017, 16:22:01) | |
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import requests | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
ImportError: No module named requests | |
>>> |
This file contains hidden or 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
diff --git a/src/rust/engine/process_execution/src/local.rs b/src/rust/engine/process_execution/src/local.rs | |
index 05e8e3a..a7ed55d 100644 | |
--- a/src/rust/engine/process_execution/src/local.rs | |
+++ b/src/rust/engine/process_execution/src/local.rs | |
@@ -1,8 +1,10 @@ | |
extern crate tempfile; | |
use boxfuture::{BoxFuture, Boxable}; | |
-use fs::{self, GlobMatching, PathGlobs, PathStatGetter, StrictGlobMatching}; | |
+use fs::{self, GlobMatching, PathGlobs, PathStatGetter, Snapshot, StrictGlobMatching}; |
This file contains hidden or 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
diff --git a/src/rust/engine/process_execution/src/local.rs b/src/rust/engine/process_execution/src/local.rs | |
index 05e8e3a..73ecf5a 100644 | |
--- a/src/rust/engine/process_execution/src/local.rs | |
+++ b/src/rust/engine/process_execution/src/local.rs | |
@@ -1,10 +1,12 @@ | |
extern crate tempfile; | |
use boxfuture::{BoxFuture, Boxable}; | |
-use fs::{self, GlobMatching, PathGlobs, PathStatGetter, StrictGlobMatching}; | |
+use fs::{self, GlobMatching, PathGlobs, PathStatGetter, Snapshot, StrictGlobMatching}; |
This file contains hidden or 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
from contextlib import contextmanager | |
import errno | |
import json | |
import os | |
import shutil | |
import sys | |
import tempfile | |
from notebook.notebookapp import main as notebook_main |
This file contains hidden or 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
#!/usr/bin/env python2.7 | |
import ast | |
import itertools | |
import fnmatch | |
import os | |
import sys | |
class DocstringScanner(object): |
This file contains hidden or 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
#!/usr/bin/env python2.7 | |
import itertools | |
def datatype(type_name, params): | |
"""A faster/more efficient namedtuple replacement with better subclassing properties. | |
>>> RustLibrary = datatype('RustLibrary', ['sources', 'dependencies']) | |
>>> rl = RustLibrary([1,2,3], [4,5,6]) |
This file contains hidden or 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
cold `./pants list ::` | |
pre gc, post-execution object count deltas | |
------------------------------------------ | |
tuple 10409897 +10400188 | |
set 7851229 +7845649 | |
list 5010959 +4998632 | |
StepRequest 3989446 +3989446 | |
Entry 2572224 +2572224 | |
dict 2305074 +2290623 |
This file contains hidden or 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
import atexit, yappi | |
def init_yappi(): | |
print('[YAPPI START]') | |
yappi.set_clock_type('wall') | |
yappi.start() | |
@atexit.register | |
def finish_yappi(): | |
print('[YAPPI STOP]') |
This file contains hidden or 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
## configs | |
config defaultToCurrentScreen true | |
config nudgePercentOf screenSize | |
config resizePercentOf screenSize | |
config checkDefaultsOnLoad true | |
config focusCheckWidthMax 3000 | |
config windowHintsShowIcons true | |
config windowHintsIgnoreHiddenWindows false | |
config windowHintsSpread true |
NewerOlder