dmg for Mac ?

69 views
Skip to first unread message

Christophe Bal

unread,
Mar 10, 2014, 5:31:27 AM3/10/14
to sympy-list
Hello.

I've just seen that NumPy and matplotlib proposes a dmg installer for Python 3. This is very usefull.

Is there just one dmg for SymPy ? If not, maybe the setup in the source codes of NumPy and matplotlib could help to build such a dmg for SymPy.

Best regards.
C.

Matthew Brett

unread,
Mar 10, 2014, 2:27:12 PM3/10/14
to sympy
Hi,
I've just put one up here:

http://nipy.bic.berkeley.edu/scipy_installers/sympy-0.7.5.dmg

Does it work?

Cheers,

Matthew

Aaron Meurer

unread,
Mar 10, 2014, 2:59:02 PM3/10/14
to sy...@googlegroups.com
Can you point to this discussion?

Aaron Meurer
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sympy+un...@googlegroups.com.
> To post to this group, send email to sy...@googlegroups.com.
> Visit this group at http://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/CAAb4jGmd8kT5qNbq4CVCcaoxJKsVxn%2BLJpTjusA3V0EY-8V9TA%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

Matthew Brett

unread,
Mar 10, 2014, 3:07:28 PM3/10/14
to sympy
Hi,

On Mon, Mar 10, 2014 at 11:59 AM, Aaron Meurer <asme...@gmail.com> wrote:
> Can you point to this discussion?
>
> Aaron Meurer
>
> On Mon, Mar 10, 2014 at 4:31 AM, Christophe Bal <proj...@gmail.com> wrote:
>> Hello.
>>
>> I've just seen that NumPy and matplotlib proposes a dmg installer for Python
>> 3. This is very usefull.
>>
>> Is there just one dmg for SymPy ? If not, maybe the setup in the source
>> codes of NumPy and matplotlib could help to build such a dmg for SymPy.
>>
>> Best regards.
>> C.

I haven't seen that discussion myself - but maybe 'proposes' means
'provides for download'?

For example, there have been dmg installers for numpy since 1.2.0
(2008) : http://sourceforge.net/projects/numpy/files/NumPy/1.2.0/

Cheers,

Matthew

Christophe Bal

unread,
Mar 10, 2014, 3:24:06 PM3/10/14
to sympy-list
Hello Matthew.

I've just installed with success using your DMG. Indeed, I've just try import sympy. Is there a way to launch tests ?

Is it hard to do such a DMG ? I'm also interest in that kind of things for personal projects.

Thanks for this and sorry for my frenchy english.


--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.

Matthew Brett

unread,
Mar 10, 2014, 4:49:19 PM3/10/14
to sympy
Hi,

On Mon, Mar 10, 2014 at 12:24 PM, Christophe Bal <proj...@gmail.com> wrote:
> Hello Matthew.
>
> I've just installed with success using your DMG. Indeed, I've just try
> import sympy. Is there a way to launch tests ?

How about::

>>> sympy.test()

> Is it hard to do such a DMG ? I'm also interest in that kind of things for
> personal projects.

Not that hard - but it's a little annoying to automate. Actually
even that wouldn't be much work.

> Thanks for this and sorry for my frenchy english.

De rien - mon francais est un peu franglais aussi,

Cheers,

Matthew

Christophe Bal

unread,
Mar 10, 2014, 6:25:33 PM3/10/14
to sympy-list
Matthew, could you send me the code you use to build the DMG ? 

-------------

sympy.test() is too simple for a french brain. :-) The tests give only one warning and one error.

WARNING

sympy/core/tests/test_args.py[572] /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/sympy/statistics/__init__.py:11: SymPyDeprecationWarning: 

sympy.statistics has been deprecated since SymPy 0.7.2. Use

sympy.stats instead. See

http://code.google.com/p/sympy/issues/detail?id=3386 for more info.

deprecated_since_version="0.7.2"

ERROR

sympy/plotting/tests/test_plot.py[2] /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/matplotlib/pyplot.py:412: RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam `figure.max_num_figures`).

  max_open_warning, RuntimeWarning)

False


Matthew Brett

unread,
Mar 10, 2014, 6:31:17 PM3/10/14
to sympy
Hi,

On Mon, Mar 10, 2014 at 3:25 PM, Christophe Bal <proj...@gmail.com> wrote:
> Matthew, could you send me the code you use to build the DMG ?

So - the dmg builds are in two phases:

* make an mpkg installer, for each python.org python
* change permissions on them
* copy them into their own directory
* make a dmg from this directory.

Some of this is automated for example in the numpy pavement.py script:

https://github.com/numpy/numpy/blob/master/pavement.py#L22

Although they do more - make a nice graphic, add documentation and so on.

In more detail

For each version of python.org python:
install bdist_mpkg : https://pypi.python.org/pypi/bdist_mpkg/
# get relevant sympy code
cd ~/repos/sympy
git co sympy-0.7.5
git clean -fxd
# build installer (but with wrong permissions)
python2.7 setup.py bdist_mpkg
# fix permissions
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sympy+un...@googlegroups.com.
> To post to this group, send email to sy...@googlegroups.com.
> Visit this group at http://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/CAAb4jGmG5C9Cydc%3DO%2BNK%2B-xD0%2BL6E%3DaSeCiaftQ7MRxyjon%2B-A%40mail.gmail.com.

Matthew Brett

unread,
Mar 10, 2014, 6:39:04 PM3/10/14
to sympy
Sorry - I sent the message too early accidentally:

On Mon, Mar 10, 2014 at 3:31 PM, Matthew Brett <matthe...@gmail.com> wrote:
> Hi,
>
> On Mon, Mar 10, 2014 at 3:25 PM, Christophe Bal <proj...@gmail.com> wrote:
>> Matthew, could you send me the code you use to build the DMG ?
>
> So - the dmg builds are in two phases:
>
> * make an mpkg installer, for each python.org python
> * change permissions on them
> * copy them into their own directory
> * make a dmg from this directory.
>
> Some of this is automated for example in the numpy pavement.py script:
>
> https://github.com/numpy/numpy/blob/master/pavement.py#L22
>
> Although they do more - make a nice graphic, add documentation and so on.
>
> In more detail
>
> For each version of python.org python:
> install bdist_mpkg : https://pypi.python.org/pypi/bdist_mpkg/

Then:

> # get relevant sympy code
> cd ~/repos/sympy
> git co sympy-0.7.5
> git clean -fxd
> # build installer (but with wrong permissions)

This next step was wrong:

> python2.7 setup.py bdist_mpkg

should be:

python2.7 setupegg.py bdist_mpkg

Then:

sudo reown_mpkg dist/sympy-0.7.5-py2.7-macosx10.6.mpkg root admin
python3.3 setupegg.py bdist_mpkg
sudo reown_mpkg dist/sympy-0.7.5-py3.3-macosx10.6.mpkg root admin
sudo hdiutil create -volname sympy-0.7.5 -srcfolder dist -ov
-format UDZO sympy-0.7.5.dmg

I think that should work for you, but if you try it, please do let me know.

Cheers,

Matthew

Christophe Bal

unread,
Mar 11, 2014, 4:10:12 AM3/11/14
to sympy-list
Thanks for this.


--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
Reply all
Reply to author
Forward
0 new messages