I think the only way is to modify the setup script to pass -X:Frames for IronPython. Also, I believe distribute is deprecated in favour of renewing work on setuptools, so you might be better off looking at the latest version of it instead.
- Jeff On Mon, Jul 15, 2013 at 8:43 PM, Daniel Fernandez < fernandez_d...@hotmail.com> wrote: > Hi All, > > I ran into an issue trying to execute dsitribute_setup.py. I used both the > -X:Frames and -X:FullFrames but I am getting an error message sys module > does not contain '_getframe'. Here is the output > > c:\Users\Daniel\Downloads>c:\IronPython27\ipy.exe -X:Frames > distribute_setup.py > Extracting in c:\users\daniel\appdata\local\temp\tmpje5fjs > Now working in > c:\users\daniel\appdata\local\temp\tmpje5fjs\distribute-0.6.49 > Installing Distribute > Before install bootstrap. > Scanning installed packages > No setuptools distribution found > running install > Traceback (most recent call last): > File "setup.py", line 147, in <module> > File "c:\IronPython27\Lib\distutils\core.py", line 151, in setup > File "c:\IronPython27\Lib\distutils\dist.py", line 952, in run_commands > File "c:\IronPython27\Lib\distutils\dist.py", line 971, in run_command > File > "c:\users\daniel\appdata\local\temp\tmpje5fjs\distribute-0.6.49\setuptools\command\install.py", > line 63, in > run > AttributeError: 'module' object has no attribute '_getframe' Something > went wrong during the installation. > See the error message above. > > > I thought passing -X:Frames (which I do almost all the time) as an > argument would enable sys module to have sys._getframe? > > I tracked in the distribute_setup.py where the issue is occurring. It is > happening in the _python_cmd function > def _python_cmd(*args): > args = (sys.executable,) + args > return subprocess.call(args) == 0 > > I don't think the -X:Frames is being passed along to the subprocess? I'm > not sure to handle this without changing the script? > > Danny > > > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users@python.org > http://mail.python.org/mailman/listinfo/ironpython-users > >
_______________________________________________ Ironpython-users mailing list Ironpython-users@python.org http://mail.python.org/mailman/listinfo/ironpython-users