Hi,

On Mon, Sep 3, 2012 at 5:58 PM, Aaron Meurer <[email protected]> wrote:
> On Sep 3, 2012, at 8:11 AM, Matthew Brett <[email protected]> wrote:
>
>> Hi,
>>
>> While trying to set up Travis testing for Python 3 and sympy, I
>> noticed that there does not seem to be a current python3-sympy for
>> Ubuntu 12.04, and that easy_install fails with a python 3 syntax
>> error.
>>
>> Testing an sdist archive from the 0.7.2 branch:
>>
>> python setup.py sdist
>> workon python32 # activate python3 virtualenv
>> easy_install dist/sympy-0.7.1-git.tar.gz # install from generated sdist
>>
>> gives:
>>
>>  File 
>> "/var/folders/jg/jgfZ12ZXHwGSFKD85xLpLk+++TI/-Tmp-/easy_install-p_wdi6/sympy-0.7.1-git/sympy/__init__.py",
>> line 34, in <module>
>> ImportError: This is the Python 2 version of SymPy. To use SymPy with
>> Python 3, please obtain a Python 3 version from http://sympy.org, or
>> use the bin/use2to3 script if you are using the git version.
>>
>> I could not see a python 3 download via sympy.org, and the bin/use2to3
>> is not in the sdist.
>>
>> I'm afraid I don't know pypi well enough to know if you can have
>> separate python 2 and python 3 sdists - is this the plan?
>
> Yes, but we haven't released a version with 2to3 support yet, so there
> aren't any downloads yet.
>
> The way it will work is that there will be two separate tarballs, one
> for Python 2 and one for Python 3. The one for Python 2 will be made
> in the standard way that you tried. The one for Python 3 will be made
> by running use2to3 and then running setup.py sdist from the py3k-sympy
> directory. When I get out the release candidates for 0.7.2 (hopefully
> this week), you will see how it works.

Thanks - I will look later - sorry for pre-empting.

Here is my .travis.yml script in case anyone runs into the same
problem in the mean time:

https://github.com/nipy/nipy/blob/master/.travis.yml

Cheers,

Matthew

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to