[111798] trunk/dports/python
g5pw at macports.org
g5pw at macports.org
Wed Oct 2 06:16:03 PDT 2013
Revision: 111798
https://trac.macports.org/changeset/111798
Author: g5pw at macports.org
Date: 2013-10-02 06:16:02 -0700 (Wed, 02 Oct 2013)
Log Message:
-----------
python/{memprof_select,py-memprof}:
new port
Added Paths:
-----------
trunk/dports/python/memprof_select/
trunk/dports/python/memprof_select/Portfile
trunk/dports/python/memprof_select/files/
trunk/dports/python/memprof_select/files/base
trunk/dports/python/memprof_select/files/none
trunk/dports/python/py-memprof/
trunk/dports/python/py-memprof/Portfile
trunk/dports/python/py-memprof/files/
trunk/dports/python/py-memprof/files/py26-memprof
trunk/dports/python/py-memprof/files/py27-memprof
trunk/dports/python/py-memprof/files/py32-memprof
trunk/dports/python/py-memprof/files/py33-memprof
trunk/dports/python/py-memprof/files/setup.py.diff
Added: trunk/dports/python/memprof_select/Portfile
===================================================================
--- trunk/dports/python/memprof_select/Portfile (rev 0)
+++ trunk/dports/python/memprof_select/Portfile 2013-10-02 13:16:02 UTC (rev 111798)
@@ -0,0 +1,34 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup select 1.0
+
+name memprof_select
+version 0.1
+revision 0
+categories python
+license BSD
+
+maintainers nomaintainer
+
+description common files for selecting default memprof version
+long_description \
+ This port installs files that allow 'port select' to be used to \
+ create links to the preferred default version of memprof.
+
+platforms darwin
+supported_archs noarch
+
+homepage http://www.macports.org/
+
+distfiles
+
+use_configure no
+build {}
+destroot {
+ select::install memprof ${filespath}/base
+ select::install memprof ${filespath}/none
+}
+
+livecheck.type none
Property changes on: trunk/dports/python/memprof_select/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/python/memprof_select/files/base
===================================================================
--- trunk/dports/python/memprof_select/files/base (rev 0)
+++ trunk/dports/python/memprof_select/files/base 2013-10-02 13:16:02 UTC (rev 111798)
@@ -0,0 +1 @@
+bin/mp_plot
Added: trunk/dports/python/memprof_select/files/none
===================================================================
--- trunk/dports/python/memprof_select/files/none (rev 0)
+++ trunk/dports/python/memprof_select/files/none 2013-10-02 13:16:02 UTC (rev 111798)
@@ -0,0 +1 @@
+-
Added: trunk/dports/python/py-memprof/Portfile
===================================================================
--- trunk/dports/python/py-memprof/Portfile (rev 0)
+++ trunk/dports/python/py-memprof/Portfile 2013-10-02 13:16:02 UTC (rev 111798)
@@ -0,0 +1,50 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=Portfile:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup python 1.0
+PortGroup github 1.0
+PortGroup select 1.0
+
+github.setup jmdana memprof 0.2.4 v
+name py-memprof
+categories-append devel
+license GPL-3
+platforms darwin
+supported_archs noarch
+
+maintainers g5pw openmaintainer
+
+description Memprof is a memory profiler for Python.
+long_description ${description} It logs and plots the memory usage of all\
+ the variables during the execution of the decorated methods.
+
+homepage http://jmdana.github.io/memprof/
+python.versions 26 27 32 33
+
+
+if {${name} != ${subport}} {
+ depends_run port:py${python.version}-matplotlib \
+ port:memprof_select
+
+ checksums rmd160 462f518ff65e761653332cb171ec93f2bc13d17c \
+ sha256 70421492bcbbb801df3dfc85928a2b610e441b65e477ab8ec66da3d1d2c0610c
+
+ # The argparse module was included in the standard library from 2.7 onwards.
+ if { ${python.branch} < 27 } {
+ depends_run-append port:py26-argparse
+ } else {
+ patchfiles-append setup.py.diff
+ }
+
+ select.group memprof
+ select.file ${filespath}/py${python.version}-memprof
+
+ notes "
+To make the Python ${python.branch} version of Memprof the one that is run when\
+you execute the commands without a version suffix, e.g. 'mp_plot', run:
+
+port select --set ${select.group} [file tail ${select.file}]
+"
+ livecheck.type none
+}
Property changes on: trunk/dports/python/py-memprof/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/python/py-memprof/files/py26-memprof
===================================================================
--- trunk/dports/python/py-memprof/files/py26-memprof (rev 0)
+++ trunk/dports/python/py-memprof/files/py26-memprof 2013-10-02 13:16:02 UTC (rev 111798)
@@ -0,0 +1 @@
+${frameworks_dir}/Python.framework/Versions/2.6/bin/mp_plot
Added: trunk/dports/python/py-memprof/files/py27-memprof
===================================================================
--- trunk/dports/python/py-memprof/files/py27-memprof (rev 0)
+++ trunk/dports/python/py-memprof/files/py27-memprof 2013-10-02 13:16:02 UTC (rev 111798)
@@ -0,0 +1 @@
+${frameworks_dir}/Python.framework/Versions/2.7/bin/mp_plot
Added: trunk/dports/python/py-memprof/files/py32-memprof
===================================================================
--- trunk/dports/python/py-memprof/files/py32-memprof (rev 0)
+++ trunk/dports/python/py-memprof/files/py32-memprof 2013-10-02 13:16:02 UTC (rev 111798)
@@ -0,0 +1 @@
+${frameworks_dir}/Python.framework/Versions/3.2/bin/mp_plot
Added: trunk/dports/python/py-memprof/files/py33-memprof
===================================================================
--- trunk/dports/python/py-memprof/files/py33-memprof (rev 0)
+++ trunk/dports/python/py-memprof/files/py33-memprof 2013-10-02 13:16:02 UTC (rev 111798)
@@ -0,0 +1 @@
+${frameworks_dir}/Python.framework/Versions/3.3/bin/mp_plot
Added: trunk/dports/python/py-memprof/files/setup.py.diff
===================================================================
--- trunk/dports/python/py-memprof/files/setup.py.diff (rev 0)
+++ trunk/dports/python/py-memprof/files/setup.py.diff 2013-10-02 13:16:02 UTC (rev 111798)
@@ -0,0 +1,13 @@
+--- setup.py 2013-08-17 20:00:30.000000000 +0200
++++ setup.py.new 2013-10-02 14:53:02.000000000 +0200
+@@ -67,8 +67,8 @@
+ "Intended Audience :: Science/Research",
+ "License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
+ ],
+- requires=['argparse','matplotlib'],
+- install_requires=['argparse','matplotlib'],
++ requires=['matplotlib'],
++ install_requires=['matplotlib'],
+ provides=['memprof'],
+ )
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131002/2c04fa7d/attachment.html>
More information about the macports-changes
mailing list