質問編集履歴

1

誤字等

2017/08/02 06:50

投稿

maccha
maccha

スコア14

test CHANGED
File without changes
test CHANGED
@@ -1,10 +1,6 @@
1
1
  setuptools パッケージのsetup関数について質問です
2
2
 
3
- 以下のように, setup関数で必要なパッケージをインストールした後、
3
+ 以下のように, setup関数で必要なパッケージを作成し、インストールしたいです。
4
-
5
- boto3パッケージを用いてAWSから必要なデータをダウンロードしたいのですが、
6
-
7
- エラーが出てしまいます。
8
4
 
9
5
 
10
6
 
@@ -16,34 +12,24 @@
16
12
 
17
13
 
18
14
 
19
- import boto3
15
+ ```
20
16
 
17
+ 実行コマンド
18
+
19
+ ```bash
20
+
21
- import botocore
21
+ python setup.py sdist
22
+
23
+ pip install ./dist/package-v.tar.gz
24
+
25
+ ```
22
26
 
23
27
 
24
28
 
25
- session = ...
29
+ setup関数で指定したinstall_requiresのパッケージがインストールされた後,
26
30
 
27
- # 以下ファイルダウンロードプログラム
31
+ awsからDBファイルダウンロードしてきてインストールパッケージと同じディレクトリに置きたいの
28
32
 
29
- ```
33
+ ですが、何かいい方法はないでしょうか.
30
34
 
31
- エラー内容は次のようになります。
32
-
33
- ```
34
-
35
- # Error 内容
36
-
37
- Traceback (most recent call last):
38
-
39
- File "setup.py", line 16, in <module>
40
-
41
- import boto3
42
-
43
- ModuleNotFoundError: No module named 'boto3'
44
-
45
- ```
46
-
47
- setup関数で指定したinstall_requiresのパッケージがインストールされから
35
+ pip install時にまとめ実行したいと考えています。
48
-
49
- ダウンロードプログラムを実行してほしい場合にはどのようにすればいいのでしょうか