Skip to content

rewrite starargs in some cases #669

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2,461 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2461 commits
Select commit Hold shift + click to select a range
c4063b2
Fix some issues with the way we build libunwind
kmod Jun 2, 2015
c4c58d0
Merge pull request #575 from kmod/libunwind_build
kmod Jun 2, 2015
df5d649
Add a section-ordering script
kmod Jun 2, 2015
d8e5b7f
Add some more 'hot functions'
kmod Jun 2, 2015
1eb9961
Merge pull request #574 from kmod/linkorder
kmod Jun 2, 2015
1906691
Merge remote-tracking branch 'upstream/master' into cmake-default
dagar Jun 3, 2015
1603542
for getattrFunc use getattrInternal instead of getattr
Apr 21, 2015
2be0638
Merge pull request #549 from tjhance/float_pow
kmod Jun 3, 2015
412730c
Merge pull request #578 from toshok/getattr-default-exc
kmod Jun 3, 2015
c510bb9
I guess sre_parse.parse is slow
kmod Jun 3, 2015
a2fe70c
Switch some more runtime functions to taking StringRefs
kmod Jun 3, 2015
c44e4da
Get rid of boxString overloads
kmod Jun 3, 2015
abd87d3
Minor compareInternal optimization
kmod Jun 3, 2015
2414077
Merge pull request #579 from kmod/string_allocs
kmod Jun 3, 2015
0554a03
Switch to calling tp_richcompare
kmod Jun 2, 2015
9cb2b9f
Convert several classes to tp_richcompare
kmod Jun 2, 2015
f97bfec
Minor issue in libunwind binary search
kmod Jun 3, 2015
cd6654b
Bump integration test timeout
kmod Jun 3, 2015
b8cd6e6
Merge pull request #577 from kmod/tp_richcompare
kmod Jun 3, 2015
6a6d049
Remove pyston_gcc from `make check`
kmod Jun 3, 2015
4411108
more benchmarks
kmod Jun 3, 2015
4fc3183
Fix compile error: inline function 'gc_free' is not defined
undingen Jun 1, 2015
e7d1650
Update libpypa to fix decorator_whitespace.py
undingen Jun 1, 2015
4bde2af
Move a bunch of stattimer stuff into header files
kmod Jun 3, 2015
0b954e7
add _elementtree - CAPI Implementation of ElementTree
undingen Jun 2, 2015
28df510
Move the static computation out of the hot areas; thought this would …
kmod Jun 3, 2015
887d59a
Switch stats to cache the pointer directly
kmod Jun 3, 2015
8f71d78
Clean up the StatTimer logic
kmod Jun 3, 2015
c2e037b
Despite my best efforts, some places are just too hot for StatTimers
kmod Jun 4, 2015
57a0f30
Merge pull request #582 from kmod/optimize_statcounters
kmod Jun 4, 2015
05fb51a
Merge pull request #584 from tjhance/test_float
kmod Jun 4, 2015
ca9d59b
long.__hash__ has to return same hash as an int if the value fits ins…
undingen Jun 4, 2015
fa86639
Generator: don't generate the traceback for the StopIteration exc whe…
undingen Jun 4, 2015
bebda73
unifying behaviour -- step 1
dorafmon Jun 4, 2015
edc6186
Fix compile error with memalloc stats or disabled stats
undingen Jun 5, 2015
217bcb0
compareInternal: call tp_richcompare even if no rewrite_args are set.
undingen Jun 5, 2015
5e84e30
Merge pull request #588 from undingen/fix_stats
kmod Jun 5, 2015
abd3c8e
Merge pull request #586 from dorafmon/master
kmod Jun 5, 2015
598da39
Merge pull request #581 from undingen/deco_whitespace
kmod Jun 5, 2015
6f84f64
Merge pull request #585 from undingen/generator_trace
kmod Jun 5, 2015
a16e898
Slightly change generator StopIteration handling
kmod Jun 5, 2015
15bf644
Try to make weakref4 less flaky
kmod Jun 5, 2015
aad3f44
Merge pull request #589 from kmod/generators
kmod Jun 5, 2015
6659293
Merge pull request #590 from kmod/weakref4
kmod Jun 5, 2015
2f4688e
Specify all package versions in virtualenv_test
kmod Jun 5, 2015
3a5b3e5
Merge pull request #591 from kmod/debugging
kmod Jun 8, 2015
24ef922
allocate runtime ics using mmap (with PROT_EXEC) so valgrind doesn't …
Jun 4, 2015
aa69f64
only use the mmap/munmap code if we're running in valgrind
Jun 8, 2015
38388e1
Free generator even if the don't exit
undingen Jun 3, 2015
a3b4a19
factor out the output diffing, and reuse it for stderr as well.
Jun 3, 2015
d23e6aa
Merge pull request #592 from undingen/generator_gc
kmod Jun 9, 2015
367d273
Merge pull request #580 from toshok/tester-output
kmod Jun 9, 2015
28963ea
Merge pull request #583 from toshok/mmap-runtime-ics
kmod Jun 9, 2015
bc36f5d
Merge pull request #594 from tjhance/future_flags_in_exec
kmod Jun 9, 2015
3df6ca8
Add more external projects to our travis-ci test suite
undingen Jun 9, 2015
da8b25c
Use the padding bytes at the end of BoxedString
kmod Jun 9, 2015
268f275
Merge pull request #600 from kmod/str_padding
kmod Jun 10, 2015
ba82f05
Skip initializing exc fields inside JITed code
undingen Jun 9, 2015
d2c03ea
Merge pull request #597 from undingen/extra_tests2
kmod Jun 10, 2015
8ceb225
Add a head_% makefile target
kmod Jun 8, 2015
6a6dc30
Misc tools+microbenchmarks
kmod Jun 8, 2015
a9176ef
Simple 'why is this object alive' helpers
kmod Jun 8, 2015
84d2b3c
add two very simple sqlalchemy tests. one works, one doesn't
Jun 10, 2015
9676dd6
add a couple of the pyxl tests in a loop
Jun 10, 2015
acda671
rename these minibenchmarks so we can run them by importing
Jun 10, 2015
5b58a6a
add a combined runner that runs django_template, pyxl, and sqlalchemy…
Jun 10, 2015
95ad7ff
Change the way we store and pass string data
kmod Jun 8, 2015
6007dae
Add weakref workaround to another test
kmod Jun 10, 2015
bd5f226
Merge pull request #605 from kmod/pass_boxes
kmod Jun 11, 2015
13cfd50
Merge pull request #604 from toshok/new-benchmarks
kmod Jun 12, 2015
9d524ea
Merge remote-tracking branch 'upstream/master' into cmake-default
dagar Jun 12, 2015
1482fe3
cmake pyston depend on copying cpython headers
dagar Jun 12, 2015
bafb715
Merge pull request #460 from dagar/cmake-default
kmod Jun 12, 2015
2e879e2
add copy_stdlib so we copy the headers for jit.cpp
Jun 12, 2015
36aa744
travis-ci move mysql table create to before_script
dagar Jun 13, 2015
eb9e278
move travis-ci extra tests configuration to cmake
dagar Jun 13, 2015
3337098
travis-ci remove irc notifications that don't work
dagar Jun 13, 2015
2c0578e
remove USE_CMAKE from Makefile
dagar Jun 13, 2015
f7ea6f5
Temporarily disable type speculation
kmod Jun 12, 2015
053a23d
Merge pull request #610 from kmod/disable_deopt
kmod Jun 16, 2015
ec79d1b
Simple string benchmark
kmod Jun 16, 2015
267a511
Cache and reuse 1-length strings
kmod Jun 16, 2015
b694555
Move boxString to a header file
kmod Jun 16, 2015
e51eff8
There were places we would mutate the result of boxString
kmod Jun 16, 2015
d17137f
Merge pull request #611 from kmod/sre_compile
kmod Jun 16, 2015
873ac0d
Split this multi-part ubenchmark into it's different parts
kmod Jun 16, 2015
215f52d
Add some simple exceptions stats
kmod Jun 16, 2015
d0fb061
Make a small optimization to sre_compile._compile
kmod Jun 16, 2015
4e03cb5
Merge pull request #595 from undingen/generator_gc2
kmod Jun 17, 2015
424539a
Merge pull request #613 from kmod/sre_compile2
kmod Jun 17, 2015
77b84b6
This test should be working now
kmod Jun 16, 2015
26c402a
centralize make check testing in cmake
dagar Jun 13, 2015
5aed5b7
Optimize creating tuples from lists
kmod Jun 17, 2015
70f4863
cmake add check-deps to split check-pyston
dagar Jun 13, 2015
bf38e67
quick_check use ctest
dagar Jun 13, 2015
8cabbf3
cmake simplify tester tests with macro
dagar Jun 13, 2015
d1da6f5
doh, memmove takes size in bytes
kmod Jun 17, 2015
926390c
add logByCurrentPythonLine, and use it for skipped ics and exceptions…
Jun 17, 2015
634950f
Merge pull request #615 from kmod/sre_compile3
kmod Jun 17, 2015
cae875e
Merge pull request #614 from toshok/exception-stats-by-python-line
kmod Jun 17, 2015
b0fb732
add a stat for the number of times we abort a callattr rewrite becaus…
Jun 17, 2015
a347784
another sre_compile benchmark
kmod Jun 17, 2015
c46e70b
Merge pull request #618 from toshok/callattr-descr-aborts
kmod Jun 17, 2015
a816391
Add rewriting for 'a in b' expressions
kmod Jun 17, 2015
46d6bba
Merge pull request #619 from kmod/sre_compile4
kmod Jun 18, 2015
9305f72
build tracebacks incrementally while c++ unwinding
May 28, 2015
dd0f439
sneak this in here, a couple of std::string allocations that we don't…
Jun 4, 2015
083ef4e
trace through the exception ferry during GC
Jun 4, 2015
6f9c6d6
stop using 'WHY' just to be similar to cpython. 'STATE' is better. …
Jun 9, 2015
af1aea2
move unwind_state to ThreadStateInternal. move the class decl to thr…
Jun 9, 2015
8e88774
a few cleanups
Jun 10, 2015
20d98b2
create an UnwindSession type (gc allocated) per thread to contain all…
Jun 12, 2015
cc16b91
rename a few things. use the UnwindSession type in unwinding.h, but …
Jun 12, 2015
14ee947
end the unwind session by setting the is_active flag to false. if th…
Jun 12, 2015
49d146c
don't move this check to addTraceback, because lineInfoForFrame is wh…
Jun 12, 2015
c0ffc37
do beginUnwind() inside __cxa_allocate_exception so we can support 't…
Jun 12, 2015
612c89f
undo the threading changes
Jun 13, 2015
526e396
rename UnwindSession to PythonUnwindSession, and add a few comments
Jun 13, 2015
925a6bb
assert that we're using a GIL here
Jun 17, 2015
21ccf4c
clean up some remaining code movement from rebases
Jun 18, 2015
a54e06e
add a timer for the active lifetime of an unwind session, and a numbe…
Jun 18, 2015
e7bd664
move the exception stat logging to PythonUnwindSession::logException,…
Jun 18, 2015
d034a63
make BoxedTraceback hold a single line, instead of a vector. rename …
Jun 18, 2015
752653f
Rewriter: Optimize contant value loading
undingen Feb 18, 2015
227d1a8
refactored the constant tracking stuff to use the locations of Rewrit…
tjhance Apr 29, 2015
e385087
don't spill constant variables onto the stack
tjhance Apr 30, 2015
676ab98
simplify the loadConst function, it doesn't need to initialize in a r…
tjhance Apr 30, 2015
db9c951
create RewriterVars for the constants used in guard actions
tjhance Apr 30, 2015
25521cb
no need to have Location::Constant around any more
tjhance Jun 18, 2015
3afc5d2
Merge pull request #607 from dagar/ctest
kmod Jun 18, 2015
cf145fb
Merge pull request #617 from tjhance/lea
kmod Jun 18, 2015
9067a58
Merge pull request #564 from toshok/incremental-traceback
kmod Jun 19, 2015
cf19a38
Some small micro-optimizations
kmod Jun 18, 2015
a80e072
Merge pull request #621 from kmod/microoptimizations
kmod Jun 19, 2015
406c188
Switch super to tp_getattro
kmod Jun 19, 2015
544be22
Merge pull request #622 from kmod/super
kmod Jun 19, 2015
57d9d30
Add stat timers for slot_tp_* functions
kmod Jun 19, 2015
2cbc3c4
Add the concept of stattimer "avoidability"
kmod Jun 19, 2015
b30c50a
use None as the sentinel value for traceback chains
Jun 19, 2015
e735558
add a comment to tester.py so that everyone's test runs will regenera…
Jun 19, 2015
85f8fff
Merge pull request #623 from kmod/stats
kmod Jun 19, 2015
a20bcab
Add native tp_descr_get for function_cls and wrapperdescr_cls
kmod Jun 19, 2015
e966137
Fix rewriter bug when instancemethod is on a non-function
kmod Jun 19, 2015
acdd2cd
Rewrite calls to BoxedMethodDescriptors
kmod Jun 19, 2015
5294816
Merge pull request #625 from kmod/perf
kmod Jun 20, 2015
2dcbe80
Add more special-cases to nonzero
kmod Jun 20, 2015
cb5f86e
Rewrite calls to astInterpretFunction
kmod Jun 20, 2015
b5d994b
Can rewrite some extra callattr edgecases
kmod Jun 20, 2015
2c93ce1
Don't crash in a couple rewriter cases
kmod Jun 12, 2015
6e8d283
travis-ci compile and test in single step
dagar Jun 20, 2015
767a519
Merge pull request #626 from kmod/perf2
kmod Jun 20, 2015
cf2c282
Merge commit 'pr/624'
kmod Jun 20, 2015
f1d03e8
Helper for pinning down where time in a stattimer happens
kmod Jun 12, 2015
a1d9091
Some more debugging for parsing issue
kmod Jun 20, 2015
fa30790
sum() was failing its ics by running out of instruction space
kmod Jun 20, 2015
f8b16db
Rename some of the stattimers
kmod Jun 20, 2015
9d5b5a6
Add support for rewriting wrapperdescriptors
kmod Jun 20, 2015
085c18b
Zero out 'globals' in the ASTInterpreter constructor
kmod Jun 20, 2015
7529462
Make the TRACE_LOG helpers available to other files
kmod Jun 20, 2015
c121fa5
Have the tester print out failed stats
kmod Jun 20, 2015
3d783e3
add -a flag which outputs assembly of ICs
tjhance Jun 21, 2015
4d4eeea
Add additional args-in-place check right before jumps
kmod Jun 22, 2015
6c273fb
Merge pull request #628 from kmod/perf3
kmod Jun 22, 2015
1f43414
Switch this to use the safer root registration form
kmod Jun 22, 2015
5592f78
Support buggy callers of PyString_GET_SIZE
kmod Jun 22, 2015
06a07a2
Merge pull request #630 from kmod/gc_fixes
kmod Jun 22, 2015
fa7b5e3
Try to make some more weakref tests more robust
kmod Jun 22, 2015
084ab6c
Rewrite some more builtin-type constructors
kmod Jun 20, 2015
f71b8b7
Rewrite some simple cases that use varargs/kwargs
kmod Jun 20, 2015
89df764
Revert to using gettimeofday to have measurements in us instead of ti…
rudi-c Jun 12, 2015
45ffeaf
Add a somewhat-rewritten case to callFunc
kmod Jun 21, 2015
cdfbb8e
don't mmap such small regions - linux clusters page faults so the lar…
Jun 23, 2015
9415d7c
Merge pull request #632 from toshok/mmap-larger-regions
kmod Jun 23, 2015
e3650a4
llvm::DenseMap is unsuitable with arbitrary integer keys
kmod Jun 23, 2015
73fc53c
Don't bother propagating garbage, just pass NULL
kmod Jun 23, 2015
df9ec46
Merge pull request #631 from kmod/perf4
kmod Jun 23, 2015
7f876c2
Move most descriptor-related code into descr.cpp
kmod Jun 23, 2015
0809576
Move these PySequence_* methods into abstract.cpp
kmod Jun 23, 2015
5947958
Get rid of runtime/capi.h
kmod Jun 23, 2015
1592894
Try again to make weakref1 more robust
kmod Jun 24, 2015
2d2406d
Merge pull request #633 from kmod/cleanup
kmod Jun 24, 2015
bb279bb
Merge pull request #608 from rudi-c/timer_fix
kmod Jun 24, 2015
2160c52
Add debug symbols to release mode.
rudi-c Jun 24, 2015
838e0ac
Specify /bin/bash for the Makefile, as some distros may have other sh…
lameiro Jun 24, 2015
5e481c9
Merge pull request #637 from lameiro/master
kmod Jun 24, 2015
b741a7c
_U_dyn_register: Use binary search to find insert location
undingen Jun 24, 2015
88eb455
Revert "Revert to using gettimeofday to have measurements in us inste…
kmod Jun 24, 2015
dcc9d6e
Merge pull request #639 from kmod/tick_timers2
kmod Jun 24, 2015
432595f
Merge pull request #638 from undingen/dyn_register
kmod Jun 24, 2015
9836423
Merge pull request #636 from rudi-c/debug_symbols
kmod Jun 24, 2015
12e00f4
do 100 queries per insert instead of 1000 after all inserts.
Jun 25, 2015
a2f7848
Include total-tests-run in our test-suite-results checking
kmod Jun 25, 2015
1bc2059
Merge pull request #644 from kmod/extra_test_counts
kmod Jun 25, 2015
70a7f17
Don't have cheetah_test look for system cheetah
kmod Jun 25, 2015
71eb746
Merge pull request #641 from toshok/increase_sqlalchemy_time
kmod Jun 25, 2015
f6b3c25
Merge pull request #645 from kmod/cheetah_fix
kmod Jun 25, 2015
e0bd51e
Temporary fix for freeing-classes-before-instances bug
kmod Jun 25, 2015
da49dc4
Merge pull request #646 from kmod/class_freeing
kmod Jun 26, 2015
52924ca
Merge pull request #627 from dagar/fix_travis
kmod Jun 26, 2015
5a81a32
Consolidate param info into ParamReceiveSpec
kmod Jun 24, 2015
19360fa
Split arg-to-param matching into a separate function
kmod Jun 24, 2015
c4ebf05
Add a tpp_call slot, and add initial version of typeTppCall
kmod Jun 24, 2015
4f95e1c
refactor out bindObjIntoArgs
kmod Jun 24, 2015
88b62b6
try to simplify things using bindObjIntoArgs
kmod Jun 24, 2015
d163fb4
Add BoxedWrapperDescriptor::tppCall
kmod Jun 24, 2015
f67fc89
typeCallInternal needs to make sure its args are guarded
kmod Jun 25, 2015
43e18ae
Travis-ci limits output to 10k lines, which some of the test suites c…
kmod Jun 26, 2015
63d008f
Rewriter fix: were trying to reuse a register when it wasn't safe
kmod Jun 26, 2015
79505a1
Merge pull request #640 from kmod/perf5.2
kmod Jun 26, 2015
4fdded4
restructed rearrangeArguments
tjhance Jun 26, 2015
f9e4fc5
move rearrangeArguments to its own file
tjhance Jun 26, 2015
fd0c77b
support kwargs parameter with varargs (but only if there are no **kwa…
tjhance Jun 26, 2015
e7f77b3
don't abort the rewrite before typeCallInner just because starargs is…
tjhance Jun 26, 2015
3948fb9
callattr: Embed the ArgPassSpec arg into the CallattrFlags struct
undingen Jun 26, 2015
02514fd
Move capifunc_cls __call__ to tpp_call
kmod Jun 26, 2015
889a2fd
Add simple itertools.chain benchmark
kmod Jun 26, 2015
89cdcc7
Give callattr runtime ics more space
kmod Jun 26, 2015
0ccfdcb
Clean up our iternext handling
kmod Jun 26, 2015
be68fac
Optimize creation of extension objects
kmod Jun 26, 2015
76c861a
capi exceptions fixes
kmod Jun 26, 2015
a9813b8
Merge pull request #648 from kmod/perf6
kmod Jun 27, 2015
e1ed10e
Convert BoxedMethodDescriptor call_internal to tppCall
kmod Jun 27, 2015
40df4bf
Separate out some more stattimers
kmod Jun 27, 2015
d9a11db
Make this benchmark less about gc speed
kmod Jun 27, 2015
88eedd3
Merge pull request #650 from kmod/perf7
kmod Jun 27, 2015
a2e932b
kmod's comments; fix up error messages
tjhance Jun 27, 2015
5fb5e9c
Take another pass over the failing cpython tests
kmod Jun 29, 2015
96674be
Merge pull request #655 from kmod/cpython_test_notes
kmod Jun 29, 2015
b4f8fd8
Add a few more stat timers
kmod Jun 27, 2015
fb76cad
Support non-system pypy binaries for testing
kmod Jun 29, 2015
239ec0a
Simple optimization: interior pointers not allowed here
kmod Jun 29, 2015
22f5295
Add some more gc trace_log info
kmod Jun 30, 2015
66ef8e0
Enable release debug symbols for our from_cpython code
kmod Jun 30, 2015
9e4c7e1
Let c api code use the PyTuple macros
kmod Jun 30, 2015
352fdb6
Add more output for the pyc issue
kmod Jun 30, 2015
6f24ad0
Try to use the fast _Check calls
kmod Jun 30, 2015
cab7c2d
Help our tuple-creation code hit the fast path more often
kmod Jun 30, 2015
b322d2b
Merge pull request #658 from kmod/perf7
kmod Jun 30, 2015
367d8b2
factor out find_cf to pyston::binarySearch.
Jun 30, 2015
e8fefe9
build sorted vectors for large/huge objects at gc time, and use binar…
Jun 30, 2015
dde8ba8
break this into two $(MAKE) invocations to keep parallel makes from m…
Jun 30, 2015
177eb41
Merge pull request #643 from tjhance/disasm
kmod Jul 1, 2015
474d13d
Merge commit #647 from undingen:merge_arg
kmod Jul 1, 2015
f45e5d7
assembler: add leave, jmp indirect and a helper for generating forwar…
undingen Jun 30, 2015
b1b0712
rewriter: Remove RewriterVar::nvars because it has false positive iss…
undingen Jun 30, 2015
5281aab
rewriter: clean up memory managment.
undingen Jul 1, 2015
53862fa
Add more runtime ICs and make the EH frame generation code ready for …
undingen Jun 30, 2015
e931682
Merge PR #661 from toshok:binary-search-large-and-huge-arenas
kmod Jul 1, 2015
9686c58
Merge pull request #664 from undingen/prep_bjit
kmod Jul 1, 2015
225b113
rewrite starargs in some cases
tjhance Jun 25, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
build

Makefile.local
tools/astprint
tools/demangle
tools/mcjitcache
tools/mcjitcache_release
tools/publicize
tools/publicize_release

pyston
pyston_opt
pyston_noasserts
Expand All @@ -15,6 +19,13 @@ pyston_debug
pyston_prof
pyston_profile
pyston_release
pyston_grwl
pyston_grwl_dbg
pyston_nosync
pyston_gcc
pystontmp*/
/*_unittest

*.cache
tests/t.py
tests/t2.py
Expand All @@ -28,6 +39,7 @@ stdlib*.ll
oprofile_data
pprof.jit
tags
TAGS
*.pyc

perf.data
Expand All @@ -38,4 +50,16 @@ gmon.out
find_problem.status
*.expected_cache

plugins/clang_capi

*.so
*.pch

compile.log

*.swp
*.swo

*.out

*~
30 changes: 30 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[submodule "libunwind"]
path = libunwind
url = git://git.sv.gnu.org/libunwind.git
ignore = all
[submodule "libpypa"]
path = libpypa
url = git://github.com/vinzenz/libpypa.git
[submodule "test/integration/django"]
path = test/integration/django
url = https://github.com/django/django
[submodule "test/integration/virtualenv"]
path = test/integration/virtualenv
url = https://github.com/dropbox/virtualenv
[submodule "lz4"]
path = lz4
url = git://github.com/Cyan4973/lz4.git
[submodule "test/integration/pycrypto"]
path = test/integration/pycrypto
url = https://github.com/dlitz/pycrypto.git
[submodule "test/integration/gflags"]
path = test/integration/gflags
url = https://github.com/google/python-gflags
ignore = untracked
[submodule "test/integration/sqlalchemy"]
path = test/integration/sqlalchemy
url = https://github.com/zzzeek/sqlalchemy
[submodule "test/integration/pyxl"]
path = test/integration/pyxl
url = https://github.com/dropbox/pyxl.git
ignore = untracked
68 changes: 68 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
language: cpp

compiler:
- clang
- gcc

# use travis-ci docker based infrastructure
sudo: false

cache:
directories:
- $HOME/.ccache

addons:
apt:
sources:
- kubuntu-backports
- llvm-toolchain-precise-3.5
- ubuntu-toolchain-r-test
packages:
- autoconf
- ccache
- clang-3.5
- cmake
- g++-4.8
- gdb
- libgmp3-dev
- liblzma-dev
- libncurses5-dev
- libreadline-dev
- libsqlite3-dev
- libtool
- ninja-build
- python-dev
- texlive-extra-utils
- libcurl4-openssl-dev

before_install:
- if [ "$CC" = "clang" ]; then export CC="clang-3.5" CXX="clang++-3.5"; fi
- if [ "$CC" = "gcc" ]; then export CC="gcc-4.8" CXX="g++-4.8"; fi

install:
- git clone git://github.com/llvm-mirror/llvm.git ~/pyston_deps/llvm-trunk
- git clone git://github.com/llvm-mirror/clang.git ~/pyston_deps/llvm-trunk/tools/clang
- git config --global user.email "you@example.com"
- git config --global user.name "Your Name"
- mkdir ~/pyston-build && cd ~/pyston-build
- make -C $TRAVIS_BUILD_DIR llvm_up
- cmake -GNinja -DTEST_THREADS=4 -DENABLE_EXTRA_TESTS=ON $TRAVIS_BUILD_DIR

before_script:
- mysql -e 'create database mysqldb_test charset utf8;'

script:
- ccache -z
- PYSTON_RUN_ARGS=G ninja -j4 pyston check-deps && ctest --output-on-failure
- ccache -s

os:
- linux
# - osx

notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/7256425a36658faa8b9b
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
8 changes: 8 additions & 0 deletions .vimrc.dir
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
set wildignore+=*.expected_cache,*.pyc,*.out,*.bc,*.d,*.o

let g:pyston_top = expand('<sfile>:p:h')
command! M execute ":make -C " . g:pyston_top . "/src -j1 COLOR=0 USE_DISTCC=0"
command! L execute ":cfile " . g:pyston_top . "/src/compile.log"

ca m M
ca l L
Loading