Re: Byte-compiled files in matplotlib-py-1.5.1-2

Alexander Hansen <[email protected]>
Newsgroups gmane.os.apple.fink.devel
Message-ID <[email protected]>
> On Feb 10, 2016, at 14:55, Derek Homeier <[email protected]> wrote:
> 
> Hi,
> 
> when building the updated matplotlib package in maintainer mode, after the tests are run I am
> still getting the dreaded verification error for the .deb:
> 
> Error: Compiled python module points to fink build dir.
> 
> Uncommenting the cleanup line does not help, because after a few Fails and Errors in the
> test suite the script exits immediately. I have not found any way to exit the python command
> with the test with a nonzero return value that would not cause ‘bash -e’ to immediately exit,
> so the only way to get rid of the compiled files and still save the test result might be to do
> the cleanup within the python call itself:
> 
> %p/bin/python%type_raw[python] -B -c 'import matplotlib as m, os, sys; r=m.test(verbosity=1); os.system("find %b/build/lib.macosx-*-%type_raw[python] -name \*.py[oc] -exec rm {} \;"); sys.exit(1-r)'
> 
> lets the test phase finish with a warning for the current bunch of failures, and should pass if
> the tests all succeed. Bit lengthy perhaps, but it sees to do the job.
> 
> Cheers,
> 					Derek
> 

How about putting the command (or perhaps a different one) at the end of the InstallScript instead and apply it to the deb root directory (%i)?  The .deb-directory validation is run after the InstallScript.

If the package is building the .deb differently depending on whether the test suite is run or not, it breaks our fundamental premise of invariant .debs.

-- 
Alexander Hansen, Ph.D.
Fink User Liaison


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Fink-devel mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.