Kay Hayen

Results 1287 comments of Kay Hayen

Well, to be clear, I was considering to do this as part of my unpaid work on Nuitka, but now I will only do it if you become a commercial...

Welcome back @deajan and there has been actually a lot of work put into 0.8 to eliminate these. This is the inline copy of `clcache` to blame. First question would...

Ok, here it comes: ``` def setEntry(self, key, artifacts): cacheEntryDir = self.cacheEntryDir(key) # Write new files to a temporary directory tempEntryDir = cacheEntryDir + ".new" # Remove any possible left-over...

What I don't get why this https://docs.python.org/3/library/os.html#os.replace would fail, I think it must be that. Assuming, you run only one compilation at a time, and still get these errors, right?

Also, how sure are you, Windows Defender is not looking at `C:\Users\myuser\AppData\Local\Nuitka\Nuitka\Cache\clcache` which I have excluded on all my systems, maybe you do not. Renaming the directory, while Windows Defender...

If you can confirm, you are using Defender, this kind of code might be needed: ``` def addResourceToFile(target_filename, data, resource_kind, lang_id, res_name, logger): max_attempts = 5 for attempt in range(1,...

I guess, I need to make this reusable code then, or make yet another copy. I am pretty sure there is at least one other place that has this kind...

If you have the capacity, would you look at making this kind of code re-usable: ``` for attempt in range(1, max_attempts + 1): update_handle = _openFileWindowsResources(target_filename) _updateWindowsResource(update_handle, resource_kind, res_name, lang_id,...

Ah, my bad, I can't stand it. I think I made a decorator that allows it: ``` def addResourceToFile(target_filename, data, resource_kind, lang_id, res_name, logger): assert os.path.exists(target_filename), target_filename @decoratorRetries(logger=logger, purpose="add resources...

It's on factory branch as a cleanup, with the decorator. We should change the clcache inline copy to use it for the function quoted above. Basically you put all work...