+# We need to run build_ext first to make sure we have _line_profiler.c.
+# However, we can't run both commands in the same run.
+ python setup.py build_ext
You may also download source tarballs of any snapshot from that URL.
Source releases will require a C compiler in order to build line_profiler. In
-addition, Mercurial checkouts will also require Cython_. Source releases on PyPI
-should contain the pregenerated C sources, so Cython should not be required in
+addition, Mercurial checkouts will also require Cython_ >= 0.10. Source releases
+on PyPI should contain the pregenerated C sources, so Cython should not be
kernprof.py is a single-file pure Python script and does not require a compiler.
If you wish to use it to run cProfile and not line-by-line profiling, you may
It should contain the generated C sources already. If you are running into
problems, that may be a bug; let me know. If you are building from
a Mercurial checkout or snapshot, you will need Cython to generate the
- C sources. I'm not sure exactly what version you need, but any recent one
+ C sources. You will probably need version 0.10 or higher. There is a bug in
+ some earlier versions in how it handles NULL PyObject* pointers.
* What version of Python do I need?
author_email = 'firstname.lastname@example.org',
description = 'Line-by-line profiler.',
long_description = long_description,
+ url = 'http://packages.python.org/line_profiler',