Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Second build don't rebuild files #74

Closed
KomarovAlea opened this issue Apr 30, 2019 · 1 comment
Closed

Second build don't rebuild files #74

KomarovAlea opened this issue Apr 30, 2019 · 1 comment

Comments

@KomarovAlea
Copy link

if os.path.getmtime(os.path.join(self.src, x)) > buildtime:

Make build. Then change code. Remove dist-folder! Build - get empty dist.
It's because in this code check buildtime of py-file in source folder, and if it less then file are don't generated. This is logical.
But it also need to check: is obfuscated file exist in dist-dir. And if it don't exist - then it need to reobfuscated them again.

I am python developer and I can read py-code. But other users of pyArmor may encounter difficulties if they remove dist-folder and try to build project again.

@jondy
Copy link
Contributor

jondy commented Apr 30, 2019

There is an option to force rebuild all files:

pyarmor build -B
pyarmor build --force

@jondy jondy closed this as completed Jul 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants