Unable to compile on windows

V@no
2014-03-29
2014-03-29
  • V@no
    V@no
    2014-03-29

    Hello.

    Since I couldn't find binary of 0.3.1 I'm trying compile it myself. I've tried Python 3.4, 2.7, 2.5, 2.4 none of them would compile it.
    3.4 returns:

    C:\javascriptlint-code-350-trunk>C:\Python34\python.exe setup.py build
    Traceback (most recent call last):
    File "setup.py", line 10, in <module>
    from javascriptlint import version
    File "C:\javascriptlint-code-350-trunk\javascriptlint__init__.py", line 2, in <module>
    from jsl import main
    ImportError: No module named 'jsl'

    2.7 returns:

    C:\javascriptlint-code-350-trunk>C:\Python27\python.exe setup.py build
    Traceback (most recent call last):
    File "setup.py", line 10, in <module>
    from javascriptlint import version
    File "C:\javascriptlint-code-350-trunk\javascriptlint__init.py", line 2, in <module>
    from jsl import main
    File "C:\javascriptlint-code-350-trunk\javascriptlint\jsl.py", line 11, in <module>
    import conf
    File "C:\javascriptlint-code-350-trunk\javascriptlint\conf.py", line 7, in <module>
    import version
    File "C:\javascriptlint-code-350-trunk\javascriptlint\version.py", line 18, in <module>
    version = '0.5.0/r%i' % _getrevnum()
    File "C:\javascriptlint-code-350-trunk\javascriptlint\version.py", line 10, in _getrevnum
    stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    File "C:\Python27\lib\subprocess.py", line 709, in
    init__
    errread, errwrite)
    File "C:\Python27\lib\subprocess.py", line 957, in _execute_child
    startupinfo)
    WindowsError: [Error 2] The system cannot find the file specified

    2.5/2.4:

    C:\javascriptlint-code-350-trunk>C:\Python25\python.exe setup.py build
    setup.py:63: Warning: 'with' will become a reserved keyword in Python 2.6
    File "setup.py", line 63
    with open(path, 'w') as f:
    ^
    SyntaxError: invalid syntax

    When I replace in setup.py line:

        with open(path, 'w') as f:

    With:

        f = open(path, 'w')

    Then 2.5/2.4 shows same error as with 2.7

    As per INSTALL I've also installed markdown from http://pypi.python.org/pypi/Markdown/1.7 into each python version installed.

    What am I missing here?

    Thank you

     
  • You should build it with 2.7. The reason it's failing is because setup.py embeds the Subversion revision number, and it can't find Subversion in the path