Skip to content

Commit

Permalink
Fix windows build bug & bump version to 0.0.4 (#14)
Browse files Browse the repository at this point in the history
* use .dll and .exe when build win32

* bump version to 0.0.4
  • Loading branch information
HugoAhoy committed Sep 5, 2021
1 parent fd06b1a commit 03f36d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion juicefs/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = "0.0.3"
VERSION = "0.0.4"
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
from importlib.machinery import SourceFileLoader

from setuptools import find_packages, setup
Expand All @@ -16,6 +17,9 @@ def load_requirements(filename):
requirements = load_requirements("requirements.txt")
test_requirements = load_requirements("requirements-dev.txt")

package_data = {'juicefs.lib': ['libjfs.so', 'juicefs']}
if sys.platform == 'win32':
package_data = {'juicefs.lib': ['libjfs.dll', 'juicefs.exe']}

setup(
name="juicefs",
Expand All @@ -25,7 +29,7 @@ def load_requirements(filename):
author_email="[email protected]",
url="https://github.com/megvii-research/juicefs-python",
packages=find_packages(exclude=("tests",)),
package_data={'juicefs.lib': ['libjfs.so', 'juicefs']},
package_data=package_data,
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
Expand Down

0 comments on commit 03f36d6

Please sign in to comment.