Re: [PATCH 1/3] Move isys and booty into the pyanaconda/ directory, adjust paths to match.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> >-from pyanaconda import _isys
> >+try:
> >+    from pyanaconda import _isys
> >+except ImportError:
> >+    # We're running in some sort of testing mode, in which case we can fix
> >+    # up PYTHONPATH and just do this basic import.
> >+    import _isys
> >+
> 
> A chance of fixing the test environment sometime?

The problem is that in your git checkout, the built _isys.so ends up in
pyanaconda/isys/.libs, which we can't really work into the python path
somehow.  Well, I guess we could through a system of gross build system
hacks but I like that even less than what I did up there.

I've set PYTHONPATH in the Makefile.am files in tests/ to make sure
isys/.libs is included.  That's why the above works at all.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux