Closed Bug 707992 Opened 13 years ago Closed 13 years ago

Upgrade to virtualenv 1.7 for mozmill tests

Categories

(Thunderbird :: Testing Infrastructure, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 11.0

People

(Reporter: rain1, Assigned: rain1)

Details

Attachments

(1 file)

Attached patch patchSplinter Review
LpSolit, this might fix the issue you were having with building tests on Thunderbird. You might want to try building in mail/test/mozmill with this patch applied.

This should be rs=Standard8. There's one change: since --no-site-packages has been made the default and the option deprecated, I've removed it.

Pushed to try: http://build.mozillamessaging.com/tinderboxpushlog/?tree=ThunderbirdTry&rev=a8bdb1320937
https://hg.mozilla.org/comm-central/rev/fabe9b1451e2
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 11.0
(LpSolit, could you try building again?)
I now get:

rm -rf ../../../mozilla/_tests/mozmill/../mozmill-virtualenv && \
mkdir ../../../mozilla/_tests/mozmill/../mozmill-virtualenv && \
/usr/bin/python2.7 ../../../mozilla/_tests/mozmill/resources/installmozmill.py ../../../mozilla/_tests/mozmill/../mozmill-virtualenv
Python: 2.7.1 (r271:86832, Sep  5 2011, 15:04:00)
[GCC 4.5.2]
The PYTHONDONTWRITEBYTECODE environment variable is not compatible with setuptools. Either use --distribute or unset PYTHONDONTWRITEBYTECODE.
Failure to install virtualenv
make[5]: *** [mozmill-virtualenv] Erreur 2
https://mxr.mozilla.org/comm-central/search?find=%2F&string=PYTHONDONTWRITEBYTECODE

We don't set it anywhere -- this seems to be specific to your environment. (I'd be really surprised if Ubuntu sets it by default.)

What happens if you try unsetting it and proceeding?
I deleted this env variable, and now the error message is the same as I had before:

rm -rf ../../../mozilla/_tests/mozmill/../mozmill-virtualenv && \
mkdir ../../../mozilla/_tests/mozmill/../mozmill-virtualenv && \
/usr/bin/python2.7 ../../../mozilla/_tests/mozmill/resources/installmozmill.py ../../../mozilla/_tests/mozmill/../mozmill-virtualenv
Python: 2.7.1 (r271:86832, Sep  5 2011, 15:04:00) 
[GCC 4.5.2]
New python executable in /root/tmp/tb/comm-central/obj-i686-pc-linux-gnu/mozilla/_tests/mozmill-virtualenv/bin/python2.7
Also creating executable in /root/tmp/tb/comm-central/obj-i686-pc-linux-gnu/mozilla/_tests/mozmill-virtualenv/bin/python
Installing setuptools....
  Complete output from command /root/tmp/tb/comm-ce...ualenv/bin/python2.7 -c "#!python
\"\"\"Bootstra...sys.argv[1:])



" /root/tmp/tb/comm-ce...ols-0.6c11-py2.7.egg:
  error: invalid Python installation: unable to open /root/tmp/tb/comm-central/obj-i686-pc-linux-gnu/mozilla/_tests/mozmill-virtualenv/include/multiarch-i386-linux/python2.7/pyconfig.h (No such file or directory)
----------------------------------------
...Installing setuptools...done.
Traceback (most recent call last):
  File "virtualenv/virtualenv.py", line 2098, in <module>
    main()
  File "virtualenv/virtualenv.py", line 928, in main
    never_download=options.never_download)
  File "virtualenv/virtualenv.py", line 1040, in create_environment
    search_dirs=search_dirs, never_download=never_download)
  File "virtualenv/virtualenv.py", line 593, in install_setuptools
    search_dirs=search_dirs, never_download=never_download)
  File "virtualenv/virtualenv.py", line 567, in _install_req
    cwd=cwd)
  File "virtualenv/virtualenv.py", line 1006, in call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command /root/tmp/tb/comm-ce...ualenv/bin/python2.7 -c "#!python
\"\"\"Bootstra...sys.argv[1:])


" /root/tmp/tb/comm-ce...ols-0.6c11-py2.7.egg failed with error code 1
Failure to install virtualenv
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: