That's a bug in distutils on Windows.
See
http://www.mail-archive.com/[email protected]/msg01365.html
James Yoo wrote:
> hello again,
>
> I've gotten really close to compiling R-2.8.1 and rpy2 on windows
> (non-trivial if you don't have admin rights)
>
> hoping someone on this list may be able to recognize something here
> (besides my incompetence)...
>
> python setup.py build compiler=mingw
>
> running build
> running build_py
> running build_ext
> building 'rpy2.rinterface.rinterface' extension
> writing build\temp.win32-2.5\Release\rpy\rinterface\rinterface.def
> build\lib.win32-2.5\rpy2\rinterface\rinterface.pyd
> writing build\temp.win32-2.5\Release\rpy\rinterface\rinterface.def
> here's p None
> None
> Traceback (most recent call last):
> File "setup.py", line 170, in <module>
> [pack_name + '.rinterface', pack_name + '.rinterface.tests']
> File "i:<redacted>\Python2.5\lib\distutils\core.py",
> line 151, in setup
> dist.run_commands()
> File "i:<redacted>\Python2.5\lib\distutils\dist.py",
> line 974, in run_commands
> self.run_command(cmd)
> File "i:<redacted>\Python2.5\lib\distutils\dist.py",
> line 994, in run_command
> cmd_obj.run()
> File "i:<redacted>\Python2.5\lib\distutils\command\b
> uild.py", line 112, in run
> self.run_command(cmd_name)
> File "i:<redacted>\Python2.5\lib\distutils\cmd.py",
> line 333, in run_command
> self.distribution.run_command(command)
> File "i:<redacted>\Python2.5\lib\distutils\dist.py",
> line 994, in run_command
> cmd_obj.run()
> File "i:<redacted>\Python2.5\lib\distutils\command\b
> uild_ext.py", line 290, in run
> self.build_extensions()
> File "i:<redacted>\Python2.5\lib\distutils\command\b
> uild_ext.py", line 416, in build_extensions
> self.build_extension(ext)
> File "i:<redacted>\Python2.5\lib\distutils\command\b
> uild_ext.py", line 513, in build_extension
> target_lang=language)
> File "i:<redacted>\Python2.5\lib\distutils\ccompiler
> .py", line 845, in link_shared_object
> extra_preargs, extra_postargs, build_temp, target_lang)
> File "i:<redacted>\Python2.5\lib\distutils\cygwincco
> mpiler.py", line 246, in link
> target_lang)
> File "i:<redacted>\Python2.5\lib\distutils\unixccomp
> iler.py", line 214, in link
> libraries)
> File "i:<redacted>\Python2.5\lib\distutils\ccompiler
> .py", line 1242, in gen_lib_options
> opt = compiler.runtime_library_dir_option (dir)
> File "i:<redacted>\Python2.5\lib\distutils\unixccomp
> iler.py", line 278, in runtime_library_dir_option
> compiler = os.path.basename(sysconfig.get_config_var("CC"))
> File "i:<redacted>\Python2.5\lib\ntpath.py", line 20
> 2, in basename
> return split(p)[1]
> File "i:<redacted>\Python2.5\lib\ntpath.py", line 16
> 5, in split
> d, p = splitdrive(p)
> File "i:<redacted>\Python2.5\lib\ntpath.py", line 12
> 0, in splitdrive
> if p[1:2] == ':':
> TypeError: 'NoneType' object is unsubscriptable
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> rpy-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/rpy-list
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
rpy-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rpy-list