File tree 3 files changed +27
-2
lines changed
3 files changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -346,7 +346,7 @@ def get_system_spec() -> Dict[str, str]:
346
346
system_spec = dict (
347
347
# used to be require 'rotkehlchen.__name__' but as long as setup.py
348
348
# target differs from package we need this
349
- rotkehlchen = pkg_resources .require ('rotki ' )[0 ].version ,
349
+ rotkehlchen = pkg_resources .require ('rotkehlchen ' )[0 ].version ,
350
350
python_implementation = platform .python_implementation (),
351
351
python_version = platform .python_version (),
352
352
system = system_info ,
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ def read(fname):
24
24
version = '1.0.4' # Do not edit: this is maintained by bumpversion (see .bumpversion.cfg)
25
25
26
26
setup (
27
- name = 'rotki ' ,
27
+ name = 'rotkehlchen ' ,
28
28
author = 'Lefteris Karapetsas' ,
29
29
author_email = 'lefteris@refu.co' ,
30
30
description = ('Acccounting, asset management and tax report helper for cryptocurrencies' ),
Original file line number Diff line number Diff line change
1
+ import os
2
+
3
+ import pkg_resources
4
+
5
+ datas = []
6
+
7
+
8
+ # This is only needed until https://github.com/pyinstaller/pyinstaller/issues/3033 is fixed
9
+ # Until then can't use PyInstaller.utils.hooks import copy_metadata
10
+ def copy_metadata (package_name ):
11
+ dist = pkg_resources .get_distribution (package_name )
12
+ metadata_dir = dist .egg_info
13
+ return [(metadata_dir , metadata_dir [len (dist .location ) + len (os .sep ):])]
14
+
15
+
16
+ # Add metadata of all required packages to allow pkg_resources.require() to work
17
+ required_packages = [("rotkehlchen" , [])]
18
+ while required_packages :
19
+ req_name , req_extras = required_packages .pop ()
20
+ for req in pkg_resources .get_distribution (req_name ).requires (req_extras ):
21
+ required_packages .append ((req .project_name , list (req .extras )))
22
+ try :
23
+ datas .extend (copy_metadata (req_name ))
24
+ except AssertionError :
25
+ pass
You can’t perform that action at this time.
0 commit comments