-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable sdist for linux platforms and bump to 2.0.1
Linux wheels are apparently not currently supported by PyPI. This is understandable, as compiled code can be *that* platform-specific, but TkImg isn't, so if you're on Linux, I recommend using the wheels in the releases.
- Loading branch information
Showing
3 changed files
with
25 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,12 +21,17 @@ def read(fname): | |
|
||
|
||
if __name__ == '__main__': | ||
# Set up TkImg library | ||
prefix = sys.platform if sys.platform not in platforms else platforms[sys.platform] | ||
arch = int(architecture()[0][:2]) | ||
current_dir = os.path.dirname(__file__) | ||
tkimg_folder = os.path.join(current_dir, "tkimg", "{}{}".format(prefix, arch)) | ||
dest_dir = os.path.join(current_dir, "ttkthemes", "tkimg") | ||
if "sdist" not in sys.argv[1]: | ||
# Set up TkImg library for bdist or install | ||
prefix = sys.platform if sys.platform not in platforms else platforms[sys.platform] | ||
arch = int(architecture()[0][:2]) | ||
tkimg_folder = os.path.join(current_dir, "tkimg", "{}{}".format(prefix, arch)) | ||
dest_dir = os.path.join(current_dir, "ttkthemes", "tkimg") | ||
else: | ||
# Set up TkImg library for sdist | ||
tkimg_folder = os.path.join(current_dir, "tkimg") | ||
dest_dir = os.path.join(current_dir, "ttkthemes", "tkimg") | ||
if os.path.exists(dest_dir): | ||
rmtree(dest_dir) | ||
copytree(tkimg_folder, dest_dir) | ||
|
@@ -35,7 +40,7 @@ def read(fname): | |
name='ttkthemes', | ||
packages=['ttkthemes'], | ||
package_data={"ttkthemes": ["themes/*", "tkimg/*"]}, | ||
version='2.0.0', | ||
version='2.0.1', | ||
description='A group of themes for the ttk extensions of Tkinter with a Tkinter.Tk wrapper', | ||
author='The ttkthemes authors', | ||
author_email='[email protected]', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters