Skip to content

Commit ce90cc5

Browse files
committed
fix setup by copying xflux32 or xflux64 instead of renaming them [xflux-gui#8], otherwise second launch of the setup.py is failing
1 parent d897dfd commit ce90cc5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

setup.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
from distutils.core import setup
44
from sys import maxsize
5-
from os import rename
5+
from shutil import copy
66

77
# Determines which is the appropriate executable for 32-bit
88
if maxsize == 2147483647:
9-
rename("xflux32", "xflux")
9+
copy("xflux32", "xflux")
1010
# ... or 64-bit processors
1111
elif maxsize == 9223372036854775807:
12-
rename("xflux64", "xflux")
12+
copy("xflux64", "xflux")
1313

1414
setup(name = "f.lux indicator applet",
1515
version = "1.1.8",

0 commit comments

Comments
 (0)