blob: 153b67fdd09d2dee1a1d789a989321b4658b937c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- setup.py.orig 2018-05-27 20:40:27 UTC
+++ setup.py
@@ -232,7 +232,10 @@ class InstallData(install_data):
data_dir = get_command_obj("install_data").install_dir
data_dir = os.path.join(data_dir, "share", "gaupol")
files = glob.glob("{}/extensions/*/*.py".format(data_dir))
- distutils.util.byte_compile(files, optimize, self.force, self.dry_run)
+ distutils.util.byte_compile(files, optimize, self.force,
+ base_dir=%%PREFIX%%,
+ prefix=%%STAGEDIR%%,
+ dry_run=self.dry_run)
# Figure out paths of the compiled files and add them to
# self.outfiles so that 'setup.py --record' works correctly.
def get_cache_pattern(path):
|