Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: python
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
Expand Down
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ To install through easy_install or pip::

$ easy_install -U memory_profiler # pip install -U memory_profiler

The package is also available on `conda-forge
<https://github.com/conda-forge/memory_profiler-feedstock>`_.

To install from source, download the package, extract and type::

$ python setup.py install
Expand Down
2 changes: 0 additions & 2 deletions mprof.bat

This file was deleted.

10 changes: 5 additions & 5 deletions mprof → mprof.py
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python

import glob
import os
import os.path as osp
Expand Down Expand Up @@ -465,7 +463,7 @@ def xlim_type(value):
help="Save plot to file instead of displaying it.")
parser.add_argument("--window", "-w", dest="xlim", type=xlim_type,
help="Plot a time-subset of the data. E.g. to plot between 0 and 20.5 seconds: --window 0,20.5")
parser.add_argument("--backend",
parser.add_argument("--backend",
help="Specify the Matplotlib backend to use")
parser.add_argument("profiles", nargs="*",
help="profiles made by mprof run")
Expand Down Expand Up @@ -540,8 +538,7 @@ def xlim_type(value):
else:
pl.show()


if __name__ == "__main__":
def main():
# Workaround for optparse limitation: insert -- before first negative
# number found.
negint = re.compile("-[0-9]+")
Expand All @@ -555,3 +552,6 @@ def xlim_type(value):
"run": run_action,
"plot": plot_action}
actions[get_action()]()

if __name__ == "__main__":
main()
11 changes: 4 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import os
import io
import re
import sys
from setuptools import setup


Expand Down Expand Up @@ -40,10 +39,6 @@ def find_version(*file_paths):

"""

scripts = ['mprof']
if sys.platform == "win32":
scripts.append('mprof.bat')

setup(
name='memory_profiler',
description='A module for monitoring memory usage of a python program',
Expand All @@ -52,8 +47,10 @@ def find_version(*file_paths):
author='Fabian Pedregosa',
author_email='f@bianp.net',
url='http://pypi.python.org/pypi/memory_profiler',
py_modules=['memory_profiler'],
scripts=scripts,
py_modules=['memory_profiler', 'mprof'],
entry_points={
'console_scripts' : ['mprof = mprof:main'],
},
install_requires=['psutil'],
classifiers=[_f for _f in CLASSIFIERS.split('\n') if _f],
license='BSD'
Expand Down